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

Make cli param examples consistently use = #291

Merged
merged 1 commit into from
Dec 13, 2022
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
20 changes: 10 additions & 10 deletions cmd/blockStorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,25 @@ var (
attachBlockStorageLong = `Attaches a block storage resource to an specified instance`
attachBlockStorageExample = `
#Full example
vultr-cli block-storage attach 67181686-5455-4ebb-81eb-7299f3506e2c --instance a7898453-dd9e-4b47-bdab-9dd7a3448f1f
vultr-cli block-storage attach 67181686-5455-4ebb-81eb-7299f3506e2c --instance=a7898453-dd9e-4b47-bdab-9dd7a3448f1f

#Shortened with aliased commands
vultr-cli bs a 67181686-5455-4ebb-81eb-7299f3506e2c -i a7898453-dd9e-4b47-bdab-9dd7a3448f1f
vultr-cli bs a 67181686-5455-4ebb-81eb-7299f3506e2c -i=a7898453-dd9e-4b47-bdab-9dd7a3448f1f
`

createBlockStorageLong = `Create a new block storage resource in a specified region`
createBlockStorageExample = `
#Full example
vultr-cli block-storage create --region 'lax' --size 10
vultr-cli block-storage create --region='lax' --size=10

#Full example with block-type
vultr-cli block-storage create --region 'lax' --size 10 --block-type 'high_perf'
vultr-cli block-storage create --region='lax' --size=10 --block-type='high_perf'

#Shortened with aliased commands
vultr-cli bs c -r 'lax' -s 10
vultr-cli bs c -r='lax' -s=10

#Shortened with aliased commands and block-type
vultr-cli bs c -r 'lax' -s 10 -b 'high_perf'
vultr-cli bs c -r='lax' -s=10 -b='high_perf'
`

deleteBlockStorageLong = `Delete a block storage resource`
Expand All @@ -71,10 +71,10 @@ var (
labelBlockStorageLong = `Set a label for a block storage resource`
labelBlockStorageExample = `
#Full example
vultr-cli block-storage label 67181686-5455-4ebb-81eb-7299f3506e2c --label "Example Label"
vultr-cli block-storage label 67181686-5455-4ebb-81eb-7299f3506e2c --label="Example Label"

#Shortened with aliased commands
vultr-cli bs label 67181686-5455-4ebb-81eb-7299f3506e2c -l "Example Label"
vultr-cli bs label 67181686-5455-4ebb-81eb-7299f3506e2c -l="Example Label"
`

listBlockStorageLong = `Retrieves a list of active block storage resources`
Expand All @@ -98,10 +98,10 @@ var (
resizeBlockStorageLong = `Resizes a specified block storage resource`
resizeBlockStorageExample = `
#Full example
vultr-cli block-storage resize 67181686-5455-4ebb-81eb-7299f3506e2c --size 20
vultr-cli block-storage resize 67181686-5455-4ebb-81eb-7299f3506e2c --size=20

#Shortened with aliased commands
vultr-cli bs r 67181686-5455-4ebb-81eb-7299f3506e2c -s 20
vultr-cli bs r 67181686-5455-4ebb-81eb-7299f3506e2c -s=20
`
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var (
vultr-cli instance create --region="ewr" --plan="vc2-1c-1gb" --os=244 --vpc-ids="08422775-5be0-4371-afba-64b03f9ad22d,13a45caa-9c06-4b5d-8f76-f5281ab172b7"

# Full example with assigned ssh keys
vultr-cli instance create --region ewr --plan vc2-1c-1gb --os 244 --ssh-keys="a14b6539-5583-41e8-a035-c07a76897f2b,be624232-56c7-4d5c-bf87-9bdaae7a1fbd"
vultr-cli instance create --region=ewr --plan=vc2-1c-1gb --os=244 --ssh-keys="a14b6539-5583-41e8-a035-c07a76897f2b,be624232-56c7-4d5c-bf87-9bdaae7a1fbd"
`

instanceTagsLong = `Modify the tags of the specified instance`
Expand Down