Skip to content

Commit

Permalink
fix(cloud): Better detail 'volume create' flags
Browse files Browse the repository at this point in the history
Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
  • Loading branch information
craciunoiuc committed Aug 14, 2024
1 parent f7b613c commit 3cfe5f5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/cli/kraft/cloud/volume/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ type CreateOptions struct {
Auth *config.AuthConfig `noattribute:"true"`
Client kcvolumes.VolumesService `noattribute:"true"`
Metro string `noattribute:"true"`
Name string `local:"true" size:"name" short:"n"`
Size string `local:"true" long:"size" short:"s" usage:"Size (MiB increments)"`
Name string `local:"true" size:"name" short:"n" usage:"Name of the volume"`
Size string `local:"true" long:"size" short:"s" usage:"Size (MiB increments or suffixes like Mi, Gi, etc.)"`
Token string `noattribute:"true"`
}

Expand Down Expand Up @@ -93,6 +93,9 @@ func NewCmd() *cobra.Command {
Example: heredoc.Doc(`
# Create a new persistent 100MiB volume named "my-volume"
$ kraft cloud volume create --size 100 --name my-volume
# Create a new persistent 10MiB volume with a random name
$ kraft cloud volume create --size 10Mi
`),
Annotations: map[string]string{
cmdfactory.AnnotationHelpGroup: "kraftcloud-vol",
Expand Down

0 comments on commit 3cfe5f5

Please sign in to comment.