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

Add y/n prompt to sub command init #64

Merged
merged 7 commits into from
Aug 6, 2017
Merged

Add y/n prompt to sub command init #64

merged 7 commits into from
Aug 6, 2017

Conversation

masutaka
Copy link
Owner

@masutaka masutaka commented Aug 6, 2017

Related to #59

#58 (comment) で話した件。

$ github-nippou init では有無を言わさず

  1. Gist を作成
  2. ~/.gitconfig への書き込み

が行われるため、確認のプロンプトを出すようにした。

y

$ bundle exec bin/github-nippou init
This command will create a gist and update your `~/.gitconfig`.
Are you sure? [y/n] y
The github-nippou settings was created on https://gist.github.com/1234abcd

And the gist_id was appended to your `~/.gitconfig`. You can
check the gist_id with following command.

    $ git config --global github-nippou.settings-gist-id

n

$ bundle exec bin/github-nippou init
This command will create a gist and update your `~/.gitconfig`.
Are you sure? [y/n] n
Canceled.

@masutaka masutaka merged commit 9900e93 into master Aug 6, 2017
@masutaka masutaka deleted the init-y/n-prompt branch August 6, 2017 15: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.

None yet

1 participant