-
Notifications
You must be signed in to change notification settings - Fork 65
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
feat(config-store): Add Config Store commands #829
Conversation
87875ea
to
a76d3a7
Compare
b1c0b81
to
157fa85
Compare
I've converted this PR to draft for the moment as the CI has been broken for a while but I'm being pinged daily to review (and I believe this PR is still being worked on). Just let me know when you're ready for me to review. Thanks. |
@Integralist sorry about that, I should have left it as draft. We'll need to bump the version of |
157fa85
to
ec57261
Compare
- https://developer.fastly.com/reference/api/services/resources/config-store/ - https://developer.fastly.com/reference/api/services/resources/config-store-item/ Related `go-fastly` change: fastly/go-fastly#398 ``` USAGE fastly config-store <command> [<args> ...] COMMANDS config-store create Create a new config store delete Delete a config store describe Retrieve a single config store list List config stores list-services List config store's services update Update a config store ``` ``` USAGE fastly config-store-entry <command> [<args> ...] COMMANDS config-store-entry create Create a new config store item delete Delete a config store item describe Retrieve a single config store item list List config store items update Update a config store item ```
ec57261
to
f429d79
Compare
Result of this change to `go-fastly`: fastly/go-fastly#405
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.
Thanks @awilliams-fastly for this PR. It looks great!
I just have a few comments related to code-base consistency and conventions.
- Use testutil.TestScenario instead of custom struct - Drop testing of whether API methods were invoked or not - Alphabetical ordering of command line flags - Remove unused 'prefix' argument from text Print function
This removes the previous complexity of using an interface for the config store and the optional metadata. Instead, just use two arguments.
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.
Awesome. Thank you @awilliams-fastly
Related
go-fastly
change: fastly/go-fastly#398