Merge pull request #733 from kunalkushwaha/dist-cli-restructure
dist cli reorganized into sub-commands
This commit is contained in:
commit
8f524ad42c
5
cmd/dist/images.go
vendored
5
cmd/dist/images.go
vendored
@ -13,8 +13,9 @@ import (
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
var imagesCommand = cli.Command{
|
||||
Name: "images",
|
||||
var imagesListCommand = cli.Command{
|
||||
Name: "list",
|
||||
Aliases: []string{"images"},
|
||||
Usage: "list images known to containerd",
|
||||
ArgsUsage: "[flags] <ref>",
|
||||
Description: `List images registered with containerd.`,
|
||||
|
30
cmd/dist/main.go
vendored
30
cmd/dist/main.go
vendored
@ -61,16 +61,11 @@ distribution tool
|
||||
},
|
||||
}
|
||||
app.Commands = []cli.Command{
|
||||
imagesCommand,
|
||||
rmiCommand,
|
||||
imageCommand,
|
||||
contentCommand,
|
||||
pullCommand,
|
||||
fetchCommand,
|
||||
fetchObjectCommand,
|
||||
ingestCommand,
|
||||
activeCommand,
|
||||
getCommand,
|
||||
deleteCommand,
|
||||
listCommand,
|
||||
applyCommand,
|
||||
rootfsCommand,
|
||||
}
|
||||
@ -93,3 +88,24 @@ distribution tool
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
var imageCommand = cli.Command{
|
||||
Name: "image",
|
||||
Usage: "image management",
|
||||
Subcommands: cli.Commands{
|
||||
imagesListCommand,
|
||||
rmiCommand,
|
||||
},
|
||||
}
|
||||
|
||||
var contentCommand = cli.Command{
|
||||
Name: "content",
|
||||
Usage: "content management",
|
||||
Subcommands: cli.Commands{
|
||||
listCommand,
|
||||
ingestCommand,
|
||||
activeCommand,
|
||||
getCommand,
|
||||
deleteCommand,
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user