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

cmd/incus/network_zone.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ type cmdNetworkZoneDelete struct {
767767
func (c *cmdNetworkZoneDelete) Command() *cobra.Command {
768768
cmd := &cobra.Command{}
769769
cmd.Use = usage("delete", i18n.G("[<remote>:]<Zone>"))
770-
cmd.Aliases = []string{"rm"}
770+
cmd.Aliases = []string{"rm", "remove"}
771771
cmd.Short = i18n.G("Delete network zones")
772772
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G("Delete network zones"))
773773
cmd.RunE = c.Run
@@ -1492,7 +1492,7 @@ type cmdNetworkZoneRecordDelete struct {
14921492
func (c *cmdNetworkZoneRecordDelete) Command() *cobra.Command {
14931493
cmd := &cobra.Command{}
14941494
cmd.Use = usage("delete", i18n.G("[<remote>:]<zone> <record>"))
1495-
cmd.Aliases = []string{"rm"}
1495+
cmd.Aliases = []string{"rm", "remove"}
14961496
cmd.Short = i18n.G("Delete network zone record")
14971497
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G("Delete network zone record"))
14981498
cmd.RunE = c.Run

cmd/incus/operation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ type cmdOperationDelete struct {
6161
func (c *cmdOperationDelete) Command() *cobra.Command {
6262
cmd := &cobra.Command{}
6363
cmd.Use = usage("delete", i18n.G("[<remote>:]<operation>"))
64-
cmd.Aliases = []string{"cancel", "rm"}
64+
cmd.Aliases = []string{"cancel", "rm", "remove"}
6565
cmd.Short = i18n.G("Delete a background operation (will attempt to cancel)")
6666
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G(
6767
`Delete a background operation (will attempt to cancel)`))

cmd/incus/project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ type cmdProjectDelete struct {
211211
func (c *cmdProjectDelete) Command() *cobra.Command {
212212
cmd := &cobra.Command{}
213213
cmd.Use = usage("delete", i18n.G("[<remote>:]<project>"))
214-
cmd.Aliases = []string{"rm"}
214+
cmd.Aliases = []string{"rm", "remove"}
215215
cmd.Short = i18n.G("Delete projects")
216216
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G(
217217
`Delete projects`))

cmd/incus/snapshot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ type cmdSnapshotDelete struct {
204204
func (c *cmdSnapshotDelete) Command() *cobra.Command {
205205
cmd := &cobra.Command{}
206206
cmd.Use = usage("delete", i18n.G("[<remote>:]<instance> <snapshot name>"))
207-
cmd.Aliases = []string{"rm"}
207+
cmd.Aliases = []string{"rm", "remove"}
208208
cmd.Short = i18n.G("Delete instance snapshots")
209209
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G(
210210
`Delete instance snapshots`))

cmd/incus/storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ type cmdStorageDelete struct {
220220
func (c *cmdStorageDelete) Command() *cobra.Command {
221221
cmd := &cobra.Command{}
222222
cmd.Use = usage("delete", i18n.G("[<remote>:]<pool>"))
223-
cmd.Aliases = []string{"rm"}
223+
cmd.Aliases = []string{"rm", "remove"}
224224
cmd.Short = i18n.G("Delete storage pools")
225225
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G(
226226
`Delete storage pools`))

cmd/incus/storage_bucket.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ type cmdStorageBucketDelete struct {
210210
func (c *cmdStorageBucketDelete) Command() *cobra.Command {
211211
cmd := &cobra.Command{}
212212
cmd.Use = usage("delete", i18n.G("[<remote>:]<pool> <bucket>"))
213-
cmd.Aliases = []string{"rm"}
213+
cmd.Aliases = []string{"rm", "remove"}
214214
cmd.Short = i18n.G("Delete storage buckets")
215215
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G(`Delete storage buckets`))
216216

@@ -1209,6 +1209,7 @@ type cmdStorageBucketKeyDelete struct {
12091209
func (c *cmdStorageBucketKeyDelete) Command() *cobra.Command {
12101210
cmd := &cobra.Command{}
12111211
cmd.Use = usage("delete", i18n.G("[<remote>:]<pool> <bucket> <key>"))
1212+
cmd.Aliases = []string{"rm", "remove"}
12121213
cmd.Short = i18n.G("Delete key from a storage bucket")
12131214
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G("Delete key from a storage bucket"))
12141215
cmd.RunE = c.RunRemove

cmd/incus/storage_volume.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ type cmdStorageVolumeDelete struct {
709709
func (c *cmdStorageVolumeDelete) Command() *cobra.Command {
710710
cmd := &cobra.Command{}
711711
cmd.Use = usage("delete", i18n.G("[<remote>:]<pool> <volume>"))
712-
cmd.Aliases = []string{"rm"}
712+
cmd.Aliases = []string{"rm", "remove"}
713713
cmd.Short = i18n.G("Delete custom storage volumes")
714714
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G(
715715
`Delete custom storage volumes`))
@@ -2678,7 +2678,7 @@ type cmdStorageVolumeSnapshotDelete struct {
26782678
func (c *cmdStorageVolumeSnapshotDelete) Command() *cobra.Command {
26792679
cmd := &cobra.Command{}
26802680
cmd.Use = usage("delete", i18n.G("[<remote>:]<pool> <volume> <snapshot>"))
2681-
cmd.Aliases = []string{"rm"}
2681+
cmd.Aliases = []string{"rm", "remove"}
26822682
cmd.Short = i18n.G("Delete storage volume snapshots")
26832683
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G(
26842684
`Delete storage volume snapshots`))

cmd/incus/warning.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ type cmdWarningDelete struct {
367367
func (c *cmdWarningDelete) Command() *cobra.Command {
368368
cmd := &cobra.Command{}
369369
cmd.Use = usage("delete", i18n.G("[<remote>:]<warning-uuid>"))
370-
cmd.Aliases = []string{"rm"}
370+
cmd.Aliases = []string{"rm", "remove"}
371371
cmd.Short = i18n.G("Delete warning")
372372
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G(
373373
`Delete warning`))

0 commit comments

Comments
 (0)