2016-05-12 10:52:00 -04:00
|
|
|
package checkpoint
|
|
|
|
|
|
|
|
import (
|
2016-10-06 10:09:54 -04:00
|
|
|
"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,
|
2016-11-17 13:54:10 -05:00
|
|
|
RunE: dockerCli.ShowHelp,
|
|
|
|
Tags: map[string]string{"experimental": "", "version": "1.25"},
|
2016-10-06 10:09:54 -04:00
|
|
|
}
|
|
|
|
cmd.AddCommand(
|
|
|
|
newCreateCommand(dockerCli),
|
|
|
|
newListCommand(dockerCli),
|
|
|
|
newRemoveCommand(dockerCli),
|
|
|
|
)
|
|
|
|
return cmd
|
2016-05-12 10:52:00 -04:00
|
|
|
}
|