github.com/docker/containerd@v0.2.9-0.20170509230648-8ef7df579710/ctr/checkpoint_solaris.go (about) 1 package main 2 3 import ( 4 "fmt" 5 6 "github.com/urfave/cli" 7 ) 8 9 var checkpointSubCmds = []cli.Command{ 10 listCheckpointCommand, 11 } 12 13 var checkpointCommand = cli.Command{ 14 Name: "checkpoints", 15 Usage: "list all checkpoints", 16 ArgsUsage: "COMMAND [arguments...]", 17 Subcommands: checkpointSubCmds, 18 Description: func() string { 19 desc := "\n COMMAND:\n" 20 for _, command := range checkpointSubCmds { 21 desc += fmt.Sprintf(" %-10.10s%s\n", command.Name, command.Usage) 22 } 23 return desc 24 }(), 25 Action: listCheckpoints, 26 } 27 28 var listCheckpointCommand = cli.Command{ 29 Name: "list", 30 Usage: "list all checkpoints for a container", 31 Action: listCheckpoints, 32 } 33 34 func listCheckpoints(context *cli.Context) { 35 fatal("checkpoint command is not supported on Solaris", ExitStatusUnsupported) 36 }