github.com/AliyunContainerService/cli@v0.0.0-20181009023821-814ced4b30d0/cli/command/checkpoint/cmd.go (about) 1 package checkpoint 2 3 import ( 4 "github.com/docker/cli/cli" 5 "github.com/docker/cli/cli/command" 6 "github.com/spf13/cobra" 7 ) 8 9 // NewCheckpointCommand returns the `checkpoint` subcommand (only in experimental) 10 func NewCheckpointCommand(dockerCli command.Cli) *cobra.Command { 11 cmd := &cobra.Command{ 12 Use: "checkpoint", 13 Short: "Manage checkpoints", 14 Args: cli.NoArgs, 15 RunE: command.ShowHelp(dockerCli.Err()), 16 Annotations: map[string]string{ 17 "experimental": "", 18 "ostype": "linux", 19 "version": "1.25", 20 }, 21 } 22 cmd.AddCommand( 23 newCreateCommand(dockerCli), 24 newListCommand(dockerCli), 25 newRemoveCommand(dockerCli), 26 ) 27 return cmd 28 }