ctr: snapshot->snapshots cmd, add aliases
Signed-off-by: Jess Valarezo <valarezo.jessica@gmail.com>
This commit is contained in:
parent
59bd196711
commit
61c8fe2307
@ -18,7 +18,7 @@ import (
|
||||
var Command = cli.Command{
|
||||
Name: "containers",
|
||||
Usage: "manage containers",
|
||||
Aliases: []string{"c"},
|
||||
Aliases: []string{"c", "container"},
|
||||
Subcommands: []cli.Command{
|
||||
deleteCommand,
|
||||
infoCommand,
|
||||
|
@ -16,6 +16,7 @@ import (
|
||||
// Command is the cli command for displaying containerd events
|
||||
var Command = cli.Command{
|
||||
Name: "events",
|
||||
Aliases: []string{"event"},
|
||||
Usage: "display containerd events",
|
||||
Action: func(context *cli.Context) error {
|
||||
client, ctx, cancel, err := commands.NewClient(context)
|
||||
|
@ -20,6 +20,7 @@ import (
|
||||
// Command is the cli command for managing images
|
||||
var Command = cli.Command{
|
||||
Name: "images",
|
||||
Aliases: []string{"image"},
|
||||
Usage: "manage images",
|
||||
Subcommands: cli.Commands{
|
||||
checkCommand,
|
||||
|
@ -17,6 +17,7 @@ import (
|
||||
// Command is the cli command for managing namespaces
|
||||
var Command = cli.Command{
|
||||
Name: "namespaces",
|
||||
Aliases: []string{"namespace"},
|
||||
Usage: "manage namespaces",
|
||||
Subcommands: cli.Commands{
|
||||
createCommand,
|
||||
|
@ -19,6 +19,7 @@ import (
|
||||
// Command is a cli command that outputs plugin information
|
||||
var Command = cli.Command{
|
||||
Name: "plugins",
|
||||
Aliases: []string{"plugin"},
|
||||
Usage: "provides information about containerd plugins",
|
||||
Flags: []cli.Flag{
|
||||
cli.BoolFlag{
|
||||
|
@ -1,4 +1,4 @@
|
||||
package snapshot
|
||||
package snapshots
|
||||
|
||||
import (
|
||||
gocontext "context"
|
||||
@ -19,7 +19,8 @@ import (
|
||||
|
||||
// Command is the cli command for managing snapshots
|
||||
var Command = cli.Command{
|
||||
Name: "snapshot",
|
||||
Name: "snapshots",
|
||||
Aliases: []string{"snapshot"},
|
||||
Usage: "manage snapshots",
|
||||
Flags: commands.SnapshotterFlags,
|
||||
Subcommands: cli.Commands{
|
@ -14,7 +14,7 @@ type resizer interface {
|
||||
var Command = cli.Command{
|
||||
Name: "tasks",
|
||||
Usage: "manage tasks",
|
||||
Aliases: []string{"t"},
|
||||
Aliases: []string{"t", "task"},
|
||||
Subcommands: []cli.Command{
|
||||
attachCommand,
|
||||
checkpointCommand,
|
||||
|
@ -14,7 +14,7 @@ import (
|
||||
"github.com/containerd/containerd/cmd/ctr/commands/plugins"
|
||||
"github.com/containerd/containerd/cmd/ctr/commands/pprof"
|
||||
"github.com/containerd/containerd/cmd/ctr/commands/run"
|
||||
"github.com/containerd/containerd/cmd/ctr/commands/snapshot"
|
||||
"github.com/containerd/containerd/cmd/ctr/commands/snapshots"
|
||||
"github.com/containerd/containerd/cmd/ctr/commands/tasks"
|
||||
versionCmd "github.com/containerd/containerd/cmd/ctr/commands/version"
|
||||
"github.com/containerd/containerd/defaults"
|
||||
@ -84,7 +84,7 @@ containerd CLI
|
||||
namespacesCmd.Command,
|
||||
pprof.Command,
|
||||
run.Command,
|
||||
snapshot.Command,
|
||||
snapshots.Command,
|
||||
tasks.Command,
|
||||
}, extraCmds...)
|
||||
app.Before = func(context *cli.Context) error {
|
||||
|
Loading…
Reference in New Issue
Block a user