-
Notifications
You must be signed in to change notification settings - Fork 152
feat(rdb): add command for instance settings #4677
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
Open
jremy42
wants to merge
19
commits into
master
Choose a base branch
from
feat/rdb_improve_instance_settings
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
c33cfb4
feat(rdb): add command for instance settings
jremy42 98b1c51
remove autocomplete.md
jremy42 888a861
Merge branch 'master' into feat/rdb_improve_instance_settings
jremy42 7fb1a7c
add golden
jremy42 88baa34
Merge branch 'master' into feat/rdb_improve_instance_settings
jremy42 d68bf05
fix lint
jremy42 1e66c0d
fix lint
jremy42 30fe940
fix autocomplete.md
jremy42 131a650
delete cassette
jremy42 6c6079e
fix dox
jremy42 19d966b
fix docs
jremy42 b76de94
fix golden
jremy42 f69716c
fix test
jremy42 0a68b44
Merge branch 'master' into feat/rdb_improve_instance_settings
jremy42 4f6779a
Merge branch 'master' into feat/rdb_improve_instance_settings
jremy42 d1d6be7
moved setting cmd
jremy42 aa43385
fix test
jremy42 0a1a6e0
fix doc
jremy42 ef03805
fix test all usage
jremy42 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
cmd/scw/testdata/test-all-usage-rdb-instance-edit-settings-usage.golden
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 | ||
🟥🟥🟥 STDERR️️ 🟥🟥🟥️ | ||
This command opens the current settings of your RDB instance in your $EDITOR. | ||
You can modify the values and save the file to apply the new configuration. | ||
|
||
USAGE: | ||
scw rdb instance edit-settings <instance-id ...> [arg=value ...] | ||
|
||
EXAMPLES: | ||
Edit instance settings in YAML | ||
scw rdb instance edit-settings 12345678-1234-1234-1234-123456789abc --region=fr-par --mode=yaml | ||
|
||
Edit instance settings in JSON | ||
scw rdb instance edit-settings 12345678-1234-1234-1234-123456789abc --region=fr-par --mode=json | ||
|
||
ARGS: | ||
instance-id ID of the instance | ||
[mode=yaml] marshaling used when editing data (yaml | json) | ||
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) | ||
|
||
FLAGS: | ||
-h, --help help for edit-settings | ||
|
||
GLOBAL FLAGS: | ||
-c, --config string The path to the config file | ||
-D, --debug Enable debug mode | ||
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human") | ||
-p, --profile string The config profile to use |
28 changes: 28 additions & 0 deletions
28
cmd/scw/testdata/test-all-usage-rdb-setting-edit-usage.golden
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲 | ||
🟥🟥🟥 STDERR️️ 🟥🟥🟥️ | ||
This command opens the current settings of your RDB instance in your $EDITOR. | ||
You can modify the values and save the file to apply the new configuration. | ||
|
||
USAGE: | ||
scw rdb setting edit <instance-id ...> [arg=value ...] | ||
|
||
EXAMPLES: | ||
Edit instance settings in YAML | ||
scw rdb setting edit 12345678-1234-1234-1234-123456789abc --region=fr-par --mode=yaml | ||
|
||
Edit instance settings in JSON | ||
scw rdb setting edit 12345678-1234-1234-1234-123456789abc --region=fr-par --mode=json | ||
|
||
ARGS: | ||
instance-id ID of the instance | ||
[mode=yaml] marshaling used when editing data (yaml | json) | ||
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw) | ||
|
||
FLAGS: | ||
-h, --help help for edit | ||
|
||
GLOBAL FLAGS: | ||
-c, --config string The path to the config file | ||
-D, --debug Enable debug mode | ||
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human") | ||
-p, --profile string The config profile to use |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs to be fixed