2016-05-12 10:52:00 -04:00
|
|
|
package checkpoint
|
|
|
|
|
|
|
|
import (
|
2016-10-06 10:09:54 -04:00
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/docker/docker/cli"
|
2016-05-12 10:52:00 -04:00
|
|
|
"github.com/docker/docker/cli/command"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
2016-09-19 14:31:53 -04:00
|
|
|
// NewCheckpointCommand returns the `checkpoint` subcommand (only in experimental)
|
|
|
|
func NewCheckpointCommand(dockerCli *command.DockerCli) *cobra.Command {
|
2016-10-06 10:09:54 -04:00
|
|
|
cmd := &cobra.Command{
|
|
|
|
Use: "checkpoint",
|
|
|
|
Short: "Manage checkpoints",
|
|
|
|
Args: cli.NoArgs,
|
|
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
|
|
fmt.Fprintf(dockerCli.Err(), "\n"+cmd.UsageString())
|
|
|
|
},
|
|
|
|
}
|
|
|
|
cmd.AddCommand(
|
|
|
|
newCreateCommand(dockerCli),
|
|
|
|
newListCommand(dockerCli),
|
|
|
|
newRemoveCommand(dockerCli),
|
|
|
|
)
|
|
|
|
return cmd
|
2016-05-12 10:52:00 -04:00
|
|
|
}
|