2016-05-12 10:52:00 -04:00
|
|
|
package checkpoint
|
|
|
|
|
|
|
|
import (
|
2017-04-17 18:07:56 -04:00
|
|
|
"github.com/docker/cli/cli"
|
|
|
|
"github.com/docker/cli/cli/command"
|
2016-05-12 10:52:00 -04:00
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
2016-09-19 14:31:53 -04:00
|
|
|
// NewCheckpointCommand returns the `checkpoint` subcommand (only in experimental)
|
2017-05-03 17:58:52 -04:00
|
|
|
func NewCheckpointCommand(dockerCli command.Cli) *cobra.Command {
|
2016-10-06 10:09:54 -04:00
|
|
|
cmd := &cobra.Command{
|
2018-05-30 17:14:59 -04:00
|
|
|
Use: "checkpoint",
|
|
|
|
Short: "Manage checkpoints",
|
|
|
|
Args: cli.NoArgs,
|
|
|
|
RunE: command.ShowHelp(dockerCli.Err()),
|
|
|
|
Annotations: map[string]string{
|
|
|
|
"experimental": "",
|
|
|
|
"ostype": "linux",
|
|
|
|
"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
|
|
|
}
|