Skip to content

v3.2.0

Compare
Choose a tag to compare
@masutaka masutaka released this 19 Aug 14:12
· 533 commits to main since this release

Changes from v3.1.0 (detail: v3.1.0...v3.2.0)

[Feature] Upgrade sub command init #68

Merge the following commands in Setup in README.md to sub command init

$ git config --global github-nippou.user [Your GitHub account]
$ git config --global github-nippou.token [Your GitHub access token]

Before

$ 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/1a1f0598a7144842881c3d0a02158b31

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

Sub command init has an ability of idempotency.

$ bundle exec bin/github-nippou init
** Already initialized.

Your `~/.gitconfig` already has gist_id as `github-nippou.settings-gist-id`.

After

github-nippou.user and github-nippou.token in ~/.gitconfig are updated by sub command init.

$ bundle exec bin/github-nippou init
** github-nippou Initialization **

== [Step: 1/3] GitHub user ==

What's your GitHub account? masutaka

The following command will be executed.

    $ git config --global github-nippou.user masutaka

Are you sure? [y/n] y
Thanks! You can get it with the following command.

    $ git config --global github-nippou.user


== [Step: 2/3] GitHub personal access token ==

To get new token with `repo` and `gist` scope, visit
https://github.com/settings/tokens/new

What's your GitHub personal access token? ********

The following command will be executed.

    $ git config --global github-nippou.token ********

Are you sure? [y/n] y
Thanks! You can get it with the following command.

    $ git config --global github-nippou.token


== [Step: 3/3] Gist (optional) ==

1. Create a gist with the content of https://github.com/masutaka/github-nippou/blob/v3.1.0/config/settings.yml
2. The following command will be executed

    $ git config --global github-nippou.settings-gist-id <created gist id>

Are you sure? [y/n] y
Thanks! You can get it with the following command.

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

And you can easily open the gist URL with web browser.

    $ github-nippou open-settings

Sub command init has an ability of idempotency even after the change.

$ bundle exec bin/github-nippou init
** github-nippou Initialization **

== [Step: 1/3] GitHub user ==

Already initialized. You can get it with the following command.

    $ git config --global github-nippou.user


== [Step: 2/3] GitHub personal access token ==

To get new token with `repo` and `gist` scope, visit
https://github.com/settings/tokens/new

Already initialized. You can get it with the following command.

    $ git config --global github-nippou.token


== [Step: 3/3] Gist (optional) ==

Already initialized. You can get it with the following command.

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

And you can easily open the gist URL with web browser.

    $ github-nippou open-settings

Misc

  • Add gem yard for development