Skip to content

Commit

Permalink
fix: make image subcommand descriptions consistent (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevSlashNull authored Jul 18, 2023
1 parent e2df229 commit 34beff0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/cmd/image/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

var deleteCmd = base.DeleteCmd{
ResourceNameSingular: "image",
ShortDescription: "Delete a image",
ShortDescription: "Delete an image",
NameSuggestions: func(c hcapi2.Client) func() []string { return c.Image().Names },
Fetch: func(ctx context.Context, client hcapi2.Client, cmd *cobra.Command, idOrName string) (interface{}, *hcloud.Response, error) {
return client.Image().Get(ctx, idOrName)
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/image/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
)

var listCmd = base.ListCmd{
ResourceNamePlural: "Images",
ResourceNamePlural: "images",
DefaultColumns: []string{"id", "type", "name", "description", "architecture", "image_size", "disk_size", "created", "deprecated"},
AdditionalFlags: func(cmd *cobra.Command) {
cmd.Flags().StringP("type", "t", "", "Only show images of given type")
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/image/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

var updateCmd = base.UpdateCmd{
ResourceNameSingular: "Image",
ShortDescription: "Update a Image",
ShortDescription: "Update an image",
NameSuggestions: func(c hcapi2.Client) func() []string { return c.Image().Names },
Fetch: func(ctx context.Context, client hcapi2.Client, cmd *cobra.Command, idOrName string) (interface{}, *hcloud.Response, error) {
return client.Image().Get(ctx, idOrName)
Expand Down

0 comments on commit 34beff0

Please sign in to comment.