Skip to content

Commit 15dcd74

Browse files
committed
refactor examples
1 parent b3a7c1b commit 15dcd74

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

internal/cmd/volume/backup/create/create.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
4747
Example: examples.Build(
4848
examples.NewExample(
4949
`Create a backup from a volume`,
50-
"$ stackit volume backup create --source-id xxx --source-type volume --project-id xxx"),
50+
"$ stackit volume backup create --source-id xxx --source-type volume"),
5151
examples.NewExample(
5252
`Create a backup from a snapshot with a name`,
53-
"$ stackit volume backup create --source-id xxx --source-type snapshot --name my-backup --project-id xxx"),
53+
"$ stackit volume backup create --source-id xxx --source-type snapshot --name my-backup"),
5454
examples.NewExample(
5555
`Create a backup with labels`,
56-
"$ stackit volume backup create --source-id xxx --source-type volume --labels key1=value1,key2=value2 --project-id xxx"),
56+
"$ stackit volume backup create --source-id xxx --source-type volume --labels key1=value1,key2=value2"),
5757
),
5858
RunE: func(cmd *cobra.Command, _ []string) error {
5959
ctx := context.Background()

internal/cmd/volume/backup/delete/delete.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
3636
Args: args.SingleArg(backupIdArg, utils.ValidateUUID),
3737
Example: examples.Build(
3838
examples.NewExample(
39-
`Delete a backup`,
40-
"$ stackit volume backup delete xxx-xxx-xxx"),
41-
examples.NewExample(
42-
`Delete a backup and wait for deletion to be completed`,
43-
"$ stackit volume backup delete xxx-xxx-xxx --async=false"),
39+
`Delete a backup with ID "xxx"`, "$ stackit volume backup delete xxx"),
4440
),
4541
RunE: func(cmd *cobra.Command, args []string) error {
4642
ctx := context.Background()

internal/cmd/volume/backup/describe/describe.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
3737
Args: args.SingleArg(backupIdArg, utils.ValidateUUID),
3838
Example: examples.Build(
3939
examples.NewExample(
40-
`Get details of a backup`,
41-
"$ stackit volume backup describe xxx-xxx-xxx"),
40+
`Get details of a backup with ID "xxx"`,
41+
"$ stackit volume backup describe xxx"),
4242
examples.NewExample(
43-
`Get details of a backup in JSON format`,
44-
"$ stackit volume backup describe xxx-xxx-xxx --output-format json"),
43+
`Get details of a backup with ID "xxx" in JSON format`,
44+
"$ stackit volume backup describe xxx --output-format json"),
4545
),
4646
RunE: func(cmd *cobra.Command, args []string) error {
4747
ctx := context.Background()

0 commit comments

Comments
 (0)