@@ -42,14 +42,14 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
4242 Args : args .NoArgs ,
4343 Example : examples .Build (
4444 examples .NewExample (
45- `Create a snapshot from a volume` ,
46- "$ stackit volume snapshot create --volume-id xxx --project-id xxx " ),
45+ `Create a snapshot from a volume with ID "xxx" ` ,
46+ "$ stackit volume snapshot create --volume-id xxx" ),
4747 examples .NewExample (
48- `Create a snapshot with a name` ,
49- "$ stackit volume snapshot create --volume-id xxx --name my-snapshot --project-id xxx " ),
48+ `Create a snapshot from a volume with ID "xxx" and name "my-snapshot" ` ,
49+ "$ stackit volume snapshot create --volume-id xxx --name my-snapshot" ),
5050 examples .NewExample (
51- `Create a snapshot with labels` ,
52- "$ stackit volume snapshot create --volume-id xxx --labels key1=value1,key2=value2 --project-id xxx " ),
51+ `Create a snapshot from a volume with ID "xxx" and labels` ,
52+ "$ stackit volume snapshot create --volume-id xxx --labels key1=value1,key2=value2" ),
5353 ),
5454 RunE : func (cmd * cobra.Command , _ []string ) error {
5555 ctx := context .Background ()
@@ -106,9 +106,9 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
106106 }
107107
108108 if model .Async {
109- params .Printer .Info ("Triggered snapshot of %q in %q. Snapshot ID: %s\n " , volumeLabel , projectLabel , * resp .Id )
109+ params .Printer .Info ("Triggered snapshot of %q in %q. Snapshot ID: %s\n " , volumeLabel , projectLabel , utils . PtrString ( resp .Id ) )
110110 } else {
111- params .Printer .Info ("Created snapshot of %q in %q. Snapshot ID: %s\n " , volumeLabel , projectLabel , * resp .Id )
111+ params .Printer .Info ("Created snapshot of %q in %q. Snapshot ID: %s\n " , volumeLabel , projectLabel , utils . PtrString ( resp .Id ) )
112112 }
113113 return nil
114114 },
0 commit comments