fix: implement ps:restore
Also add all the niceties around parallelism that were introduced for the other commands.
This commit is contained in:
@@ -44,9 +44,11 @@ func main() {
|
||||
err = ps.CommandRestart(appName, *allApps, *parallelCount)
|
||||
case "restore":
|
||||
args := flag.NewFlagSet("ps:restore", flag.ExitOnError)
|
||||
allApps := args.Bool("all", false, "--all: restore all apps")
|
||||
parallelCount := args.Int("parallel", ps.RunInSerial, "--parallel: number of apps to restore in parallel, -1 to match cpu count")
|
||||
args.Parse(os.Args[2:])
|
||||
appName := args.Arg(0)
|
||||
err = ps.CommandRestore(appName)
|
||||
err = ps.CommandRestore(appName, *allApps, *parallelCount)
|
||||
case "retire":
|
||||
args := flag.NewFlagSet("ps:retire", flag.ExitOnError)
|
||||
args.Parse(os.Args[2:])
|
||||
|
||||
Reference in New Issue
Block a user