From a97830028841b1bf2766d5bc2aa1d09e14383e14 Mon Sep 17 00:00:00 2001 From: Zim Kalinowski Date: Fri, 18 Oct 2024 16:29:48 +0200 Subject: [PATCH] Fixing not properly displayed options (#1595) Co-authored-by: Zim Kalinowski --- commands/droplet_actions.go | 2 +- commands/droplets.go | 4 ++-- commands/images.go | 2 +- commands/registry.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/droplet_actions.go b/commands/droplet_actions.go index de8e4b0d5..45c34722e 100644 --- a/commands/droplet_actions.go +++ b/commands/droplet_actions.go @@ -167,7 +167,7 @@ This command automatically powers off the Droplet before resizing it.` "resize ", "Resize a Droplet", dropletResizeDesc, Writer, displayerType(&displayers.Action{})) AddBoolFlag(cmdDropletActionResize, doctl.ArgResizeDisk, "", false, "Resize the Droplet's disk size in addition to its RAM and CPUs") - AddStringFlag(cmdDropletActionResize, doctl.ArgSizeSlug, "", "", "A slug indicating the new size for the Droplet, for example `s-2vcpu-2gb`. Run `doctl compute size list` for a list of valid sizes.", requiredOpt()) + AddStringFlag(cmdDropletActionResize, doctl.ArgSizeSlug, "", "", "A `slug` indicating the new size for the Droplet, for example `s-2vcpu-2gb`. Run `doctl compute size list` for a list of valid sizes.", requiredOpt()) AddBoolFlag(cmdDropletActionResize, doctl.ArgCommandWait, "", false, "Instruct the terminal to wait for the action to complete before returning access to the user") cmdDropletActionResize.Example = `The following example resizes a Droplet with the ID ` + "`" + `386734086` + "`" + ` to a Droplet with two CPUs, two GiB of RAM, and 60 GBs of disk space. The 60 GBs of disk space is the defined amount for the ` + "`" + `s-2vcpu-2gb` + "`" + ` plan: doctl compute droplet-action resize 386734086 --size s-2vcpu-2gb --resize-disk=true` diff --git a/commands/droplets.go b/commands/droplets.go index eaf158694..b22866b3a 100644 --- a/commands/droplets.go +++ b/commands/droplets.go @@ -77,8 +77,8 @@ If you do not specify a region, the Droplet is created in the default region for AddStringFlag(cmdDropletCreate, doctl.ArgUserData, "", "", "A shell script to run on the Droplet's first boot") AddStringFlag(cmdDropletCreate, doctl.ArgUserDataFile, "", "", "The path to a file containing a shell script or Cloud-init YAML file to run on the Droplet's first boot. Example: `path/to/file.yaml`") AddBoolFlag(cmdDropletCreate, doctl.ArgCommandWait, "", false, "Instructs the terminal to wait for the action to complete before returning access to the user") - AddStringFlag(cmdDropletCreate, doctl.ArgRegionSlug, "", "", "A slug specifying the region to create the Droplet in, such as `nyc1`. Use the `doctl compute region list` command for a list of valid regions.") - AddStringFlag(cmdDropletCreate, doctl.ArgSizeSlug, "", "", "A slug indicating the Droplet's number of vCPUs, RAM, and disk size. For example, `s-1vcpu-1gb` specifies a Droplet with one vCPU and 1 GiB of RAM. The disk size is defined by the slug's plan. Run `doctl compute size list` for a list of valid size slugs and their disk sizes.", + AddStringFlag(cmdDropletCreate, doctl.ArgRegionSlug, "", "", "A `slug` specifying the region to create the Droplet in, such as `nyc1`. Use the `doctl compute region list` command for a list of valid regions.") + AddStringFlag(cmdDropletCreate, doctl.ArgSizeSlug, "", "", "A `slug` indicating the Droplet's number of vCPUs, RAM, and disk size. For example, `s-1vcpu-1gb` specifies a Droplet with one vCPU and 1 GiB of RAM. The disk size is defined by the slug's plan. Run `doctl compute size list` for a list of valid size slugs and their disk sizes.", requiredOpt()) AddBoolFlag(cmdDropletCreate, doctl.ArgBackups, "", false, "Enables backups for the Droplet. Backups are created on a weekly basis.") AddBoolFlag(cmdDropletCreate, doctl.ArgIPv6, "", false, "Enables IPv6 support and assigns an IPv6 address to the Droplet") diff --git a/commands/images.go b/commands/images.go index 045771fbc..495ea1dc2 100644 --- a/commands/images.go +++ b/commands/images.go @@ -90,7 +90,7 @@ Currently, there are five types of images: snapshots, backups, custom images, di cmdRunImagesCreate := CmdBuilder(cmd, RunImagesCreate, "create ", "Create custom image", `Creates an image in your DigitalOcean account. Specify a URL to download the image from and the region to store the image in. You can add additional metadata to the image using the optional flags.`, Writer) AddStringFlag(cmdRunImagesCreate, doctl.ArgImageExternalURL, "", "", "The URL to retrieve the image from", requiredOpt()) - AddStringFlag(cmdRunImagesCreate, doctl.ArgRegionSlug, "", "", "The slug of the region you want to store the image in. For a list of region slugs, use the `doctl compute region list` command.", requiredOpt()) + AddStringFlag(cmdRunImagesCreate, doctl.ArgRegionSlug, "", "", "The `slug` of the region you want to store the image in. For a list of region slugs, use the `doctl compute region list` command.", requiredOpt()) AddStringFlag(cmdRunImagesCreate, doctl.ArgImageDistro, "", "Unknown", "A custom image distribution slug to apply to the image") AddStringFlag(cmdRunImagesCreate, doctl.ArgImageDescription, "", "", "An optional description of the image") AddStringSliceFlag(cmdRunImagesCreate, doctl.ArgTagNames, "", []string{}, "A list of tag names to apply to the image") diff --git a/commands/registry.go b/commands/registry.go index 9503e872a..8adadbf3f 100644 --- a/commands/registry.go +++ b/commands/registry.go @@ -76,7 +76,7 @@ func Registry() *Command { AddStringFlag(cmdRunRegistryCreate, doctl.ArgSubscriptionTier, "", "basic", "Subscription tier for the new registry. For a list of possible values, use the `doctl registry options subscription-tiers` command.", requiredOpt()) AddStringFlag(cmdRunRegistryCreate, doctl.ArgRegionSlug, "", "", - "A slug indicating which datacenter region the registry reside in. For a list of supported region slugs, use the `doctl registry options available-regions` command") + "A `slug` indicating which datacenter region the registry reside in. For a list of supported region slugs, use the `doctl registry options available-regions` command") cmdRunRegistryCreate.Example = `The following example creates a registry named ` + "`" + `example-registry` + "`" + ` in the NYC3 region: doctl registry create example-registry --region=nyc3` getRegDesc := "Retrieves details about a private container registry, including its name and the endpoint used to access it."