Skip to content

Commit

Permalink
docs: make resource plural names consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
phm07 committed Oct 25, 2023
1 parent 9a0487a commit babd9c9
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion internal/cmd/certificate/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/datacenter/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
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().StringSliceP("type", "t", []string{}, "Only show images of given type")
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/iso/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/location/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/network/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/placementgroup/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/server/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
)

var ListCmd = base.ListCmd{
ResourceNamePlural: "servers",
ResourceNamePlural: "Servers",

DefaultColumns: []string{"id", "name", "status", "ipv4", "ipv6", "private_net", "datacenter", "age"},

Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/sshkey/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/volume/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit babd9c9

Please sign in to comment.