package main import "github.com/codegangsta/cli" var restoreCommand = cli.Command{ Name: "restore", Usage: "restore a container from a previous checkpoint", Flags: []cli.Flag{ cli.StringFlag{Name: "id", Value: "nsinit", Usage: "specify the ID for a container"}, }, Action: func(context *cli.Context) { container, err := getContainer(context) if err != nil { fatal(err) } if err := container.Restore(); err != nil { fatal(err) } }, }