From babd9c92f1dcbae79ad612563378885cef6ab888 Mon Sep 17 00:00:00 2001 From: pauhull Date: Wed, 25 Oct 2023 08:40:38 +0200 Subject: [PATCH] docs: make resource plural names consistent --- internal/cmd/certificate/list.go | 2 +- internal/cmd/datacenter/list.go | 2 +- internal/cmd/image/list.go | 2 +- internal/cmd/iso/list.go | 2 +- internal/cmd/location/list.go | 2 +- internal/cmd/network/list.go | 2 +- internal/cmd/placementgroup/list.go | 2 +- internal/cmd/server/list.go | 2 +- internal/cmd/sshkey/list.go | 2 +- internal/cmd/volume/list.go | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/internal/cmd/certificate/list.go b/internal/cmd/certificate/list.go index b13e5e22..d200fb3e 100644 --- a/internal/cmd/certificate/list.go +++ b/internal/cmd/certificate/list.go @@ -16,7 +16,7 @@ import ( ) var ListCmd = base.ListCmd{ - ResourceNamePlural: "certificates", + ResourceNamePlural: "Certificates", DefaultColumns: []string{"id", "name", "type", "domain_names", "not_valid_after", "age"}, Fetch: func(ctx context.Context, client hcapi2.Client, _ *pflag.FlagSet, listOpts hcloud.ListOpts, sorts []string) ([]interface{}, error) { diff --git a/internal/cmd/datacenter/list.go b/internal/cmd/datacenter/list.go index e8ba19f6..2dd81ebb 100644 --- a/internal/cmd/datacenter/list.go +++ b/internal/cmd/datacenter/list.go @@ -14,7 +14,7 @@ import ( ) var ListCmd = base.ListCmd{ - ResourceNamePlural: "datacenters", + ResourceNamePlural: "Datacenters", DefaultColumns: []string{"id", "name", "description", "location"}, Fetch: func(ctx context.Context, client hcapi2.Client, _ *pflag.FlagSet, listOpts hcloud.ListOpts, sorts []string) ([]interface{}, error) { diff --git a/internal/cmd/image/list.go b/internal/cmd/image/list.go index 84538594..5df0bc81 100644 --- a/internal/cmd/image/list.go +++ b/internal/cmd/image/list.go @@ -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().StringSliceP("type", "t", []string{}, "Only show images of given type") diff --git a/internal/cmd/iso/list.go b/internal/cmd/iso/list.go index 94319aca..9bf0e54f 100644 --- a/internal/cmd/iso/list.go +++ b/internal/cmd/iso/list.go @@ -19,7 +19,7 @@ import ( ) var ListCmd = base.ListCmd{ - ResourceNamePlural: "isos", + ResourceNamePlural: "ISOs", DefaultColumns: []string{"id", "name", "description", "type", "architecture"}, AdditionalFlags: func(cmd *cobra.Command) { cmd.Flags().StringSlice("architecture", []string{}, "Only show images of given architecture: x86|arm") diff --git a/internal/cmd/location/list.go b/internal/cmd/location/list.go index cf2897d1..280e7c61 100644 --- a/internal/cmd/location/list.go +++ b/internal/cmd/location/list.go @@ -14,7 +14,7 @@ import ( ) var ListCmd = base.ListCmd{ - ResourceNamePlural: "locations", + ResourceNamePlural: "Locations", DefaultColumns: []string{"id", "name", "description", "network_zone", "country", "city"}, Fetch: func(ctx context.Context, client hcapi2.Client, _ *pflag.FlagSet, listOpts hcloud.ListOpts, sorts []string) ([]interface{}, error) { diff --git a/internal/cmd/network/list.go b/internal/cmd/network/list.go index b89fdb55..db7b72e4 100644 --- a/internal/cmd/network/list.go +++ b/internal/cmd/network/list.go @@ -17,7 +17,7 @@ import ( ) var ListCmd = base.ListCmd{ - ResourceNamePlural: "networks", + ResourceNamePlural: "Networks", DefaultColumns: []string{"id", "name", "ip_range", "servers", "age"}, Fetch: func(ctx context.Context, client hcapi2.Client, _ *pflag.FlagSet, listOpts hcloud.ListOpts, sorts []string) ([]interface{}, error) { diff --git a/internal/cmd/placementgroup/list.go b/internal/cmd/placementgroup/list.go index 8df44e1e..acf0f347 100644 --- a/internal/cmd/placementgroup/list.go +++ b/internal/cmd/placementgroup/list.go @@ -16,7 +16,7 @@ import ( ) var ListCmd = base.ListCmd{ - ResourceNamePlural: "placement groups", + ResourceNamePlural: "Placement Groups", DefaultColumns: []string{"id", "name", "servers", "type", "age"}, Fetch: func(ctx context.Context, client hcapi2.Client, _ *pflag.FlagSet, listOpts hcloud.ListOpts, sorts []string) ([]interface{}, error) { diff --git a/internal/cmd/server/list.go b/internal/cmd/server/list.go index f325f03d..34a4cddb 100644 --- a/internal/cmd/server/list.go +++ b/internal/cmd/server/list.go @@ -19,7 +19,7 @@ import ( ) var ListCmd = base.ListCmd{ - ResourceNamePlural: "servers", + ResourceNamePlural: "Servers", DefaultColumns: []string{"id", "name", "status", "ipv4", "ipv6", "private_net", "datacenter", "age"}, diff --git a/internal/cmd/sshkey/list.go b/internal/cmd/sshkey/list.go index 47376dd3..5136d7a5 100644 --- a/internal/cmd/sshkey/list.go +++ b/internal/cmd/sshkey/list.go @@ -15,7 +15,7 @@ import ( ) var ListCmd = base.ListCmd{ - ResourceNamePlural: "ssh keys", + ResourceNamePlural: "SSH keys", DefaultColumns: []string{"id", "name", "fingerprint", "age"}, Fetch: func(ctx context.Context, client hcapi2.Client, _ *pflag.FlagSet, listOpts hcloud.ListOpts, sorts []string) ([]interface{}, error) { diff --git a/internal/cmd/volume/list.go b/internal/cmd/volume/list.go index 509b0c2d..3a44bfce 100644 --- a/internal/cmd/volume/list.go +++ b/internal/cmd/volume/list.go @@ -17,7 +17,7 @@ import ( ) var ListCmd = base.ListCmd{ - ResourceNamePlural: "volumes", + ResourceNamePlural: "Volumes", DefaultColumns: []string{"id", "name", "size", "server", "location", "age"}, Fetch: func(ctx context.Context, client hcapi2.Client, _ *pflag.FlagSet, listOpts hcloud.ListOpts, sorts []string) ([]interface{}, error) {