Feature: Support deleting multiple objects in CLI#2656
Conversation
|
Hey @stgraber , only for commands first push is made:
will push others after these reviews |
|
Commands support multiple delete objects (including previous):
|
|
@Mujib-Ahasan you'll want to look at and fix the issues reported by the |
8f01bf2 to
d314d96
Compare
cmd/incus/cluster_group.go
Outdated
| cmd.Short = i18n.G("Delete a cluster group") | ||
| cmd.Short = i18n.G("Delete cluster-groups") | ||
| cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G( | ||
| `Delete a cluster group`)) | ||
| `Delete cluster-groups`)) |
There was a problem hiding this comment.
This should be Delete cluster groups instead of cluster-groups.
cmd/incus/cluster_group.go
Outdated
| @@ -278,18 +278,14 @@ func (c *cmdClusterGroupDelete) Command() *cobra.Command { | |||
| cmd := &cobra.Command{} | |||
| cmd.Use = cli.Usage("delete", i18n.G("[<remote>:]<group>")) | |||
There was a problem hiding this comment.
This usage needs to be updated to show multiple groups being allowed.
[<remote>:]<group> [[<remote>:]<group>...]
cmd/incus/network_address_set.go
Outdated
| if resource.name == "" { | ||
| return errors.New(i18n.G("Missing network address set name")) | ||
| } | ||
| // Delete the Address Set. |
There was a problem hiding this comment.
Shouldn't be capitalized, just Delete the address set. is fine.
|
@Mujib-Ahasan I did a quick rebase of the changes and reviewed them. The main things I'm seeing are:
|
|
Thank you @stgraber for pointing out,I'll change it as suggested, soon!! |
d314d96 to
b0996d1
Compare
|
previously did some mistake during pushing, hope this will work now.
It would be great if you handle this! |
|
Looking into this one now |
Signed-off-by: Mujib Ahasan <[email protected]>
Signed-off-by: Stéphane Graber <[email protected]>
8049aa4 to
5e23954
Compare
Description
Changes have been made to ensure multiple object deletion in a single command with multiple objects in argument. This PR is opened to make the feature available.
Related issue #2651