Skip to content

Commit

Permalink
Fix alias
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Emmanuel Jacquier <[email protected]>
  • Loading branch information
pierre-emmanuelJ committed Apr 3, 2024
1 parent c0b85e7 commit 5702fe6
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmd/blockstorage_attach.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type blockStorageAttachCmd struct {
Zone v3.ZoneName `cli-short:"z" cli-usage:"block storage zone"`
}

func (c *blockStorageAttachCmd) cmdAliases() []string { return gCreateAlias }
func (c *blockStorageAttachCmd) cmdAliases() []string { return []string{"a"} }

func (c *blockStorageAttachCmd) cmdShort() string { return "Attach a Block Storage Volume" }

Expand Down
2 changes: 1 addition & 1 deletion cmd/blockstorage_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type blockStorageDeleteCmd struct {
Force bool `cli-short:"f" cli-usage:"don't prompt for confirmation"`
}

func (c *blockStorageDeleteCmd) cmdAliases() []string { return gCreateAlias }
func (c *blockStorageDeleteCmd) cmdAliases() []string { return gDeleteAlias }

func (c *blockStorageDeleteCmd) cmdShort() string { return "Delete a Block Storage Volume" }

Expand Down
2 changes: 1 addition & 1 deletion cmd/blockstorage_detach.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type blockStorageDetachCmd struct {
Zone v3.ZoneName `cli-short:"z" cli-usage:"block storage volume zone"`
}

func (c *blockStorageDetachCmd) cmdAliases() []string { return gCreateAlias }
func (c *blockStorageDetachCmd) cmdAliases() []string { return []string{"d"} }

func (c *blockStorageDetachCmd) cmdShort() string { return "Detach a Block Storage Volume" }

Expand Down
2 changes: 1 addition & 1 deletion cmd/blockstorage_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type blockStorageListCmd struct {
Zone v3.ZoneName `cli-short:"z" cli-usage:"zone to filter results to"`
}

func (c *blockStorageListCmd) cmdAliases() []string { return gCreateAlias }
func (c *blockStorageListCmd) cmdAliases() []string { return gListAlias }

func (c *blockStorageListCmd) cmdShort() string { return "List Block Storage Volumes" }

Expand Down
2 changes: 1 addition & 1 deletion cmd/blockstorage_snapshot_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type blockStorageSnapshotDeleteCmd struct {
Force bool `cli-short:"f" cli-usage:"don't prompt for confirmation"`
}

func (c *blockStorageSnapshotDeleteCmd) cmdAliases() []string { return gCreateAlias }
func (c *blockStorageSnapshotDeleteCmd) cmdAliases() []string { return gDeleteAlias }

func (c *blockStorageSnapshotDeleteCmd) cmdShort() string {
return "Delete a Block Storage Volume Snapshot"
Expand Down
2 changes: 1 addition & 1 deletion cmd/blockstorage_snapshot_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type blockStorageSnapshotListCmd struct {
Zone v3.ZoneName `cli-short:"z" cli-usage:"zone to filter results to"`
}

func (c *blockStorageSnapshotListCmd) cmdAliases() []string { return gCreateAlias }
func (c *blockStorageSnapshotListCmd) cmdAliases() []string { return gListAlias }

func (c *blockStorageSnapshotListCmd) cmdShort() string { return "List Block Storage Volume Snapshots" }

Expand Down
2 changes: 1 addition & 1 deletion cmd/blockstorage_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type blockStorageUpdateCmd struct {
Zone v3.ZoneName `cli-short:"z" cli-usage:"block storage volume zone"`
}

func (c *blockStorageUpdateCmd) cmdAliases() []string { return gCreateAlias }
func (c *blockStorageUpdateCmd) cmdAliases() []string { return []string{"up"} }

func (c *blockStorageUpdateCmd) cmdShort() string { return "Update a Block Storage Volume" }

Expand Down

0 comments on commit 5702fe6

Please sign in to comment.