main: rename list-images to list
Rename the `list-images` command to `list`. We don't have `-image(s)` in our other subcommands so this is for consistency. We keep a `list-images` alias behind for compatibility reasons. Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
This commit is contained in:
parent
a963712152
commit
274a75387b
5 changed files with 27 additions and 26 deletions
|
|
@ -392,16 +392,17 @@ operating systems like Fedora, CentOS and RHEL with easy customizations support.
|
|||
rootCmd.SetOut(osStdout)
|
||||
rootCmd.SetErr(osStderr)
|
||||
|
||||
listImagesCmd := &cobra.Command{
|
||||
Use: "list-images",
|
||||
listCmd := &cobra.Command{
|
||||
Use: "list",
|
||||
Short: "List buildable images, use --filter to limit further",
|
||||
RunE: cmdListImages,
|
||||
SilenceUsage: true,
|
||||
Args: cobra.NoArgs,
|
||||
Aliases: []string{"list-images"},
|
||||
}
|
||||
listImagesCmd.Flags().StringArray("filter", nil, `Filter distributions by a specific criteria (e.g. "type:iot*")`)
|
||||
listImagesCmd.Flags().String("format", "", "Output in a specific format (text, json)")
|
||||
rootCmd.AddCommand(listImagesCmd)
|
||||
listCmd.Flags().StringArray("filter", nil, `Filter distributions by a specific criteria (e.g. "type:iot*")`)
|
||||
listCmd.Flags().String("format", "", "Output in a specific format (text, json)")
|
||||
rootCmd.AddCommand(listCmd)
|
||||
|
||||
manifestCmd := &cobra.Command{
|
||||
Use: "manifest <image-type>",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue