Update ctr containers and tasks command

This moves container and tasks commands under the containers and tasks
top level commands.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-08-07 11:08:50 -04:00
parent b20fd92a13
commit 00288bcb58
15 changed files with 188 additions and 168 deletions

View File

@@ -65,30 +65,21 @@ containerd CLI
}
app.Commands = append([]cli.Command{
applyCommand,
attachCommand,
checkpointCommand,
containersCommand,
contentCommand,
eventsCommand,
execCommand,
fetchCommand,
fetchObjectCommand,
imageCommand,
infoCommand,
killCommand,
namespacesCommand,
pauseCommand,
pprofCommand,
psCommand,
pullCommand,
pushCommand,
pushObjectCommand,
resumeCommand,
rootfsCommand,
runCommand,
snapshotCommand,
startCommand,
taskListCommand,
tasksCommand,
versionCommand,
}, extraCmds...)
app.Before = func(context *cli.Context) error {
@@ -102,14 +93,3 @@ containerd CLI
os.Exit(1)
}
}
var containersCommand = cli.Command{
Name: "containers",
Usage: "manage containers (metadata)",
Aliases: []string{"c"},
Subcommands: []cli.Command{
containersListCommand,
containersDeleteCommand,
containersSetLabelsCommand,
},
}