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

By default, won't let it create the config #2

Merged
merged 2 commits into from
May 1, 2018
Merged

Conversation

babarot
Copy link
Owner

@babarot babarot commented Apr 29, 2018

WHAT

When using --edit-config flag, if there is no config file, creates it.

Before

$ ls ~/.config/iap_curl/config.json
/home/b4b4r07/.config/iap_curl/config.json: no such file or directory
$ iap_curl xxx.xxx.com
$ ls ~/.config/iap_curl/config.json
/home/b4b4r07/.config/iap_curl/config.json

After

$ ls ~/.config/iap_curl/config.json
/home/b4b4r07/.config/iap_curl/config.json: no such file or directory
$ iap_curl xxx.xxx.com
$ ls ~/.config/iap_curl/config.json
/home/b4b4r07/.config/iap_curl/config.json: no such file or directory
$ iap_curl --edit-config
$ ls ~/.config/iap_curl/config.json
/home/b4b4r07/.config/iap_curl/config.json

WHY

Until now it was created if there was no config file when executed. However, this is not worth to users who do not use the config file.

@babarot babarot self-assigned this Apr 29, 2018
@babarot babarot merged commit e5e6539 into master May 1, 2018
@babarot babarot deleted the create-config branch May 1, 2018 06:50
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.

1 participant