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

command config #26

Merged
merged 9 commits into from
Aug 19, 2019
Merged

command config #26

merged 9 commits into from
Aug 19, 2019

Conversation

Eomm
Copy link
Member

@Eomm Eomm commented Jun 13, 2019

This PR will close #23 and #3
Relates to #2

Starting to design how to store the common config.
The idea is to introduce a config command that consent to users to store the key/value pair they use often and then load those settings when the other commands will execute.

Another aspect is to lock some keys, like --major and --npm-otp.

The config will be stored in ~/releasify directory and not in clear text

Let me know your considerations 👍

man/config Outdated Show resolved Hide resolved
@mcollina
Copy link
Member

mcollina commented Aug 5, 2019

I don't understand the question.

Essentially we cannot ask via command line flags for values, because those might be sensitive information (a token) that will end up in the user sh history :/.

So, the solution is to use a prompt.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests? :P saw it, never mind

lib/commands/config.js Outdated Show resolved Hide resolved
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Eomm Eomm merged commit cf3e2aa into master Aug 19, 2019
@Eomm Eomm deleted the command-conf branch August 19, 2019 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Store github token in config file
2 participants