File tree Expand file tree Collapse file tree 3 files changed +8
-12
lines changed
internal/cmd/volume/backup Expand file tree Collapse file tree 3 files changed +8
-12
lines changed Original file line number Diff line number Diff 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 ()
Original file line number Diff line number Diff 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 ()
Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments