Skip to content

Commit 56c68cb

Browse files
Joseph Wilsonstgraber
authored andcommitted
incus: Add remove aliases to delete commands
Signed-off-by: Joseph Wilson <[email protected]>
1 parent 970be28 commit 56c68cb

18 files changed

+21
-20
lines changed

cmd/incus/config_template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ type cmdConfigTemplateDelete struct {
135135
func (c *cmdConfigTemplateDelete) Command() *cobra.Command {
136136
cmd := &cobra.Command{}
137137
cmd.Use = usage("delete", i18n.G("[<remote>:]<instance> <template>"))
138-
cmd.Aliases = []string{"rm"}
138+
cmd.Aliases = []string{"rm", "remove"}
139139
cmd.Short = i18n.G("Delete instance file templates")
140140
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G(
141141
`Delete instance file templates`))

cmd/incus/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ type cmdFileDelete struct {
295295
func (c *cmdFileDelete) Command() *cobra.Command {
296296
cmd := &cobra.Command{}
297297
cmd.Use = usage("delete", i18n.G("[<remote>:]<instance>/<path> [[<remote>:]<instance>/<path>...]"))
298-
cmd.Aliases = []string{"rm"}
298+
cmd.Aliases = []string{"rm", "remove"}
299299
cmd.Short = i18n.G("Delete files in instances")
300300
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G(
301301
`Delete files in instances`))

cmd/incus/image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ type cmdImageDelete struct {
310310
func (c *cmdImageDelete) Command() *cobra.Command {
311311
cmd := &cobra.Command{}
312312
cmd.Use = usage("delete", i18n.G("[<remote>:]<image> [[<remote>:]<image>...]"))
313-
cmd.Aliases = []string{"rm"}
313+
cmd.Aliases = []string{"rm", "remove"}
314314
cmd.Short = i18n.G("Delete images")
315315
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G(
316316
`Delete images`))

cmd/incus/image_alias.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ type cmdImageAliasDelete struct {
136136
func (c *cmdImageAliasDelete) Command() *cobra.Command {
137137
cmd := &cobra.Command{}
138138
cmd.Use = usage("delete", i18n.G("[<remote>:]<alias>"))
139-
cmd.Aliases = []string{"rm"}
139+
cmd.Aliases = []string{"rm", "remove"}
140140
cmd.Short = i18n.G("Delete image aliases")
141141
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G(
142142
`Delete image aliases`))

cmd/incus/network.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ type cmdNetworkDelete struct {
466466
func (c *cmdNetworkDelete) Command() *cobra.Command {
467467
cmd := &cobra.Command{}
468468
cmd.Use = usage("delete", i18n.G("[<remote>:]<network>"))
469-
cmd.Aliases = []string{"rm"}
469+
cmd.Aliases = []string{"rm", "remove"}
470470
cmd.Short = i18n.G("Delete networks")
471471
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G(
472472
`Delete networks`))

cmd/incus/network_acl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ type cmdNetworkACLDelete struct {
833833
func (c *cmdNetworkACLDelete) Command() *cobra.Command {
834834
cmd := &cobra.Command{}
835835
cmd.Use = usage("delete", i18n.G("[<remote>:]<ACL>"))
836-
cmd.Aliases = []string{"rm"}
836+
cmd.Aliases = []string{"rm", "remove"}
837837
cmd.Short = i18n.G("Delete network ACLs")
838838
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G("Delete network ACLs"))
839839
cmd.RunE = c.Run

cmd/incus/network_forward.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ type cmdNetworkForwardDelete struct {
847847
func (c *cmdNetworkForwardDelete) Command() *cobra.Command {
848848
cmd := &cobra.Command{}
849849
cmd.Use = usage("delete", i18n.G("[<remote>:]<network> <listen_address>"))
850-
cmd.Aliases = []string{"rm"}
850+
cmd.Aliases = []string{"rm", "remove"}
851851
cmd.Short = i18n.G("Delete network forwards")
852852
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G("Delete network forwards"))
853853
cmd.RunE = c.Run

cmd/incus/network_integration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ type cmdNetworkIntegrationDelete struct {
175175
func (c *cmdNetworkIntegrationDelete) Command() *cobra.Command {
176176
cmd := &cobra.Command{}
177177
cmd.Use = usage("delete", i18n.G("[<remote>:]<network integration>"))
178-
cmd.Aliases = []string{"rm"}
178+
cmd.Aliases = []string{"rm", "remove"}
179179
cmd.Short = i18n.G("Delete network integrations")
180180
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G(
181181
`Delete network integrations`))

cmd/incus/network_load_balancer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ type cmdNetworkLoadBalancerDelete struct {
827827
func (c *cmdNetworkLoadBalancerDelete) Command() *cobra.Command {
828828
cmd := &cobra.Command{}
829829
cmd.Use = usage("delete", i18n.G("[<remote>:]<network> <listen_address>"))
830-
cmd.Aliases = []string{"rm"}
830+
cmd.Aliases = []string{"rm", "remove"}
831831
cmd.Short = i18n.G("Delete network load balancers")
832832
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G("Delete network load balancers"))
833833
cmd.RunE = c.Run

cmd/incus/network_peer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ type cmdNetworkPeerDelete struct {
862862
func (c *cmdNetworkPeerDelete) Command() *cobra.Command {
863863
cmd := &cobra.Command{}
864864
cmd.Use = usage("delete", i18n.G("[<remote>:]<network> <peer_name>"))
865-
cmd.Aliases = []string{"rm"}
865+
cmd.Aliases = []string{"rm", "remove"}
866866
cmd.Short = i18n.G("Delete network peerings")
867867
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G("Delete network peerings"))
868868
cmd.RunE = c.Run

0 commit comments

Comments
 (0)