Introduce plugins/list subcommand
`Ctr` interface follows the pattern `ctr <command> <subcommand>` except for the `plugins` command which does not have subcommands. This feels unnatural to certain users and they would expect that they can list containerd plugins via `ctr plugins list`. This commit implements their expectation so that `plugins` becomes a command "group" and its `list` subcommand actually lists the plugins. Signed-off-by: Danail Branekov <danailster@gmail.com>
This commit is contained in:
parent
a044b047e8
commit
3cf3881fa4
@ -37,6 +37,15 @@ var Command = cli.Command{
|
||||
Name: "plugins",
|
||||
Aliases: []string{"plugin"},
|
||||
Usage: "provides information about containerd plugins",
|
||||
Subcommands: []cli.Command{
|
||||
listCommand,
|
||||
},
|
||||
}
|
||||
|
||||
var listCommand = cli.Command{
|
||||
Name: "list",
|
||||
Aliases: []string{"ls"},
|
||||
Usage: "lists containerd plugins",
|
||||
Flags: []cli.Flag{
|
||||
cli.BoolFlag{
|
||||
Name: "quiet,q",
|
||||
|
Loading…
Reference in New Issue
Block a user