Make all the experimental subcommand consistent.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
Upstream-commit: 6eefcea51a85d202fcb1e282c6c74b4553743107
Component: engine
This commit is contained in:
Daniel Nephin
2016-09-19 14:31:53 -04:00
parent 0afc2f6a90
commit cca442f52e
8 changed files with 56 additions and 56 deletions

View File

@ -7,6 +7,7 @@ import (
"github.com/spf13/cobra"
)
// NewCheckpointCommand appends the `checkpoint` subcommands to rootCmd (only in experimental)
func NewCheckpointCommand(rootCmd *cobra.Command, dockerCli *command.DockerCli) {
// NewCheckpointCommand returns the `checkpoint` subcommand (only in experimental)
func NewCheckpointCommand(dockerCli *command.DockerCli) *cobra.Command {
return &cobra.Command{}
}

View File

@ -11,8 +11,8 @@ import (
"github.com/docker/docker/cli/command"
)
// NewCheckpointCommand appends the `checkpoint` subcommands to rootCmd
func NewCheckpointCommand(rootCmd *cobra.Command, dockerCli *command.DockerCli) {
// NewCheckpointCommand returns the `checkpoint` subcommand (only in experimental)
func NewCheckpointCommand(dockerCli *command.DockerCli) *cobra.Command {
cmd := &cobra.Command{
Use: "checkpoint",
Short: "Manage checkpoints",
@ -26,6 +26,5 @@ func NewCheckpointCommand(rootCmd *cobra.Command, dockerCli *command.DockerCli)
newListCommand(dockerCli),
newRemoveCommand(dockerCli),
)
rootCmd.AddCommand(cmd)
return cmd
}