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

Evaluate library to manage CLI configuration #29

Open
dblandin opened this issue Feb 10, 2021 · 0 comments
Open

Evaluate library to manage CLI configuration #29

dblandin opened this issue Feb 10, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@dblandin
Copy link
Member

We currently have our own config utility (built to store an Artsy API token. As we continue to grow the CLI, we might want to consider a library to mange that config management for us.

We currently refer to process.env for the following tokens: GITHUB_TOKEN, OPSGENIE_API_KEY, CLIENT_ID, CLIENT_SECRET, SLACK_WEB_API_TOKEN. I don't think it's reasonable to expect the user to have all of these environment variables set on their system. It would be great if we could check for their presence when needed, and guide to the user on how to fetch them.

I'm thinking of something like the aws configure flow with interactive prompts.

Check out the Config section in this cheatsheet for options: https://github.com/sw-yx/cli-cheatsheet#contextconfig

@dblandin dblandin added the enhancement New feature or request label Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant