github.com/vieux/docker@v0.6.3-0.20161004191708-e097c2a938c7/cli/command/checkpoint/cmd_experimental.go (about) 1 // +build experimental 2 3 package checkpoint 4 5 import ( 6 "fmt" 7 8 "github.com/spf13/cobra" 9 10 "github.com/docker/docker/cli" 11 "github.com/docker/docker/cli/command" 12 ) 13 14 // NewCheckpointCommand returns the `checkpoint` subcommand (only in experimental) 15 func NewCheckpointCommand(dockerCli *command.DockerCli) *cobra.Command { 16 cmd := &cobra.Command{ 17 Use: "checkpoint", 18 Short: "Manage checkpoints", 19 Args: cli.NoArgs, 20 Run: func(cmd *cobra.Command, args []string) { 21 fmt.Fprintf(dockerCli.Err(), "\n"+cmd.UsageString()) 22 }, 23 } 24 cmd.AddCommand( 25 newCreateCommand(dockerCli), 26 newListCommand(dockerCli), 27 newRemoveCommand(dockerCli), 28 ) 29 return cmd 30 }