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"
|
"github.com/urfave/cli"
|
||||||
)
|
)
|
||||||
|
|
||||||
var imagesCommand = cli.Command{
|
var imagesListCommand = cli.Command{
|
||||||
Name: "images",
|
Name: "list",
|
||||||
|
Aliases: []string{"images"},
|
||||||
Usage: "list images known to containerd",
|
Usage: "list images known to containerd",
|
||||||
ArgsUsage: "[flags] <ref>",
|
ArgsUsage: "[flags] <ref>",
|
||||||
Description: `List images registered with containerd.`,
|
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{
|
app.Commands = []cli.Command{
|
||||||
imagesCommand,
|
imageCommand,
|
||||||
rmiCommand,
|
contentCommand,
|
||||||
pullCommand,
|
pullCommand,
|
||||||
fetchCommand,
|
fetchCommand,
|
||||||
fetchObjectCommand,
|
fetchObjectCommand,
|
||||||
ingestCommand,
|
|
||||||
activeCommand,
|
|
||||||
getCommand,
|
|
||||||
deleteCommand,
|
|
||||||
listCommand,
|
|
||||||
applyCommand,
|
applyCommand,
|
||||||
rootfsCommand,
|
rootfsCommand,
|
||||||
}
|
}
|
||||||
@ -93,3 +88,24 @@ distribution tool
|
|||||||
os.Exit(1)
|
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