Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incus/storage_bucket: Add example for storage bucket create #826

Merged
merged 2 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cmd/incus/storage_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ func (c *cmdStorageBucketCreate) Command() *cobra.Command {
cmd.Use = usage("create", i18n.G("[<remote>:]<pool> <bucket> [key=value...]"))
cmd.Short = i18n.G("Create new custom storage buckets")
cmd.Long = cli.FormatSection(i18n.G("Description"), i18n.G(`Create new custom storage buckets`))
cmd.Example = cli.FormatSection("", i18n.G(`incus storage bucket create p1 b01
Create a new storage bucket name b01 in storage pool p1

incus storage bucket create p1 b01 < config.yaml
Craete a new storage bucket name b01 in storage pool p1 using the content of config.yaml`))

cmd.Flags().StringVar(&c.storageBucket.flagTarget, "target", "", i18n.G("Cluster member name")+"``")
cmd.RunE = c.Run
Expand Down
Loading
Loading