Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upIntroduce a 'central' .cs.json for cs command. #1074
Conversation
yueri
reviewed
Feb 5, 2019
@@ -17,7 +17,8 @@ Custom defaults may be provided for all commands. | |||
Multiple clusters are supported via configuration. | |||
|
|||
In order to use the Cook CLI, you’ll need a configuration file. | |||
`cs` looks first for a `.cs.json` file in the current directory, and then for a `.cs.json` file in your home directory. |
This comment has been minimized.
This comment has been minimized.
yueri
Feb 5, 2019
Author
Contributor
I'm not very happy with the wording here. Can someone think of a better way to phrase this?
This comment has been minimized.
This comment has been minimized.
dposada
Feb 5, 2019
Member
I think this wording is fine. Maybe it would help to add the "why" from your PR:
Why are we making these changes?
We want to have a default
.cs.json
configuration file for all users. This allows users to roll out updates to their configurations (for instance, adding a new cluster) by only updating the default.cs.json
file rather than the.cs.json
file of all their end users.
dposada
reviewed
Feb 5, 2019
Code LGTM. Can we write integration test(s) for this? |
dposada
added
cli
wip
labels
Feb 5, 2019
This comment has been minimized.
This comment has been minimized.
I'm still working on the integration tests. It took me a while to figure out how they were working in the first place, but I think I have an idea for adding some checks. |
yueri commentedFeb 5, 2019
Changes proposed in this PR
.cs.json
file for the cs commandWhy are we making these changes?
We want to have a default
.cs.json
configuration file for all users. This allows users to roll out updates to their configurations (for instance, adding a new cluster) by only updating the default.cs.json
file rather than the.cs.json
file of all their end users.