main: rename describe-image to describe
Leaves behind a compatibility alias. Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
This commit is contained in:
parent
0f348301d9
commit
412fe34b41
2 changed files with 3 additions and 2 deletions
|
|
@ -455,12 +455,13 @@ operating systems like Fedora, CentOS and RHEL with easy customizations support.
|
|||
|
||||
// XXX: add --format=json too?
|
||||
describeImgCmd := &cobra.Command{
|
||||
Use: "describe-image <image-type>",
|
||||
Use: "describe <image-type>",
|
||||
Short: "Describe the given image-type, e.g. qcow2 (tip: combine with --distro,--arch)",
|
||||
RunE: cmdDescribeImg,
|
||||
SilenceUsage: true,
|
||||
Args: cobra.ExactArgs(1),
|
||||
Hidden: true,
|
||||
Aliases: []string{"describe-image"},
|
||||
}
|
||||
describeImgCmd.Flags().String("arch", "", `use the different architecture`)
|
||||
describeImgCmd.Flags().String("distro", "", `build manifest for a different distroname (e.g. centos-9)`)
|
||||
|
|
|
|||
|
|
@ -688,7 +688,7 @@ func TestDescribeImageSmoke(t *testing.T) {
|
|||
defer restore()
|
||||
|
||||
restore = main.MockOsArgs([]string{
|
||||
"describe-image",
|
||||
"describe",
|
||||
"qcow2",
|
||||
"--distro=centos-9",
|
||||
"--arch=x86_64",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue