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

docs(instance): fix example for image create #1995

Merged
merged 2 commits into from
Oct 21, 2021
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
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ USAGE:
scw instance image create [arg=value ...]

EXAMPLES:
Create an image named 'foobar' for x86_64 instances from the given root_volume ID (root_volume ID needs to be a snapshot UUID)
scw instance image create name=foobar root-volume=11111111-1111-1111-1111-111111111111 arch=x86_64
Create an image named 'foobar' for x86_64 instances from the given snapshot ID
scw instance image create name=foobar snapshot-id=11111111-1111-1111-1111-111111111111 arch=x86_64

ARGS:
[name=<generated>] Name of the image
Expand Down
4 changes: 2 additions & 2 deletions docs/commands/instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ scw instance image create [arg=value ...]
**Examples:**


Create an image named 'foobar' for x86_64 instances from the given root_volume ID (root_volume ID needs to be a snapshot UUID)
Create an image named 'foobar' for x86_64 instances from the given snapshot ID
```
scw instance image create name=foobar root-volume=11111111-1111-1111-1111-111111111111 arch=x86_64
scw instance image create name=foobar snapshot-id=11111111-1111-1111-1111-111111111111 arch=x86_64
```


Expand Down
4 changes: 2 additions & 2 deletions internal/namespaces/instance/v1/instance_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -1098,8 +1098,8 @@ func instanceImageCreate() *core.Command {
},
Examples: []*core.Example{
{
Short: "Create an image named 'foobar' for x86_64 instances from the given root_volume ID (root_volume ID needs to be a snapshot UUID)",
ArgsJSON: `{"arch":"x86_64","name":"foobar","root_volume":"11111111-1111-1111-1111-111111111111"}`,
Short: "Create an image named 'foobar' for x86_64 instances from the given snapshot ID",
Raw: `scw instance image create name=foobar snapshot-id=11111111-1111-1111-1111-111111111111 arch=x86_64`,
},
},
}
Expand Down