You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create a command to autoconfigure git-repo, which would be:
git repo configure (github|gitlab|bitbucket)
which would then run an authentication loop, to query auth tokens, asking for user/pass for both github and gitlab, and record login:pass for bitbucket (until oauth config is implemented).
Eventually, it could ask for custom gitlab URLs as well.
% git repo configure
• Do you want to configure github access?
[Yn]> Y
Enter your username:
'guyzmo'> foobar
Enter your password:
>
Please wait while getting authenticated…
Done, cheers! 🍻
• Do you want to configure gitlab access?
[Yn]> Y
Enter your username:
'$USER'> barfoo
Enter your password:
>
Please wait while getting authenticated…
Done, cheers! 🍻
• Do you want to configure bitbucket access?
[Yn]> Y
Enter your username:
'$USER'> fubar
Enter your password:
>
Done, cheers! 🍻
• Do you want to add a custom gitlab access?
[yN]> Y
Enter the URL of the gitlab:
> https://my_gitlab.my_domain.tld
Enter the short name of the service:
> mine
Enter your username:
'$USER'> ford.prefect
Enter your password:
>
Please wait while getting authenticated…
Done, cheers! 🍻
• Do you want to add a custom gitlab access?
[yN]> n
Thank you, here's your configuration:
Service | Name | Username | Password | Token | URI
--------- | ---- | ------------ | -------- | -------- | -----
Github | hub | foobar | * | Acquired | *
Gitlab | lab | barfoo | * | Acquired | *
Bitbucket | bb | fubar | Acquired | * | *
Gitlab | mine | ford.prefect | * | Acquired | https://my_gitlab.my_domain.tld
The text was updated successfully, but these errors were encountered:
* Improved CLI API ;
* Made repo slug optional for commands that don't need it ;
* Added auto configuration command.
* fixes issue #9: Make requests for merges not needing repo slug
* fixes issue #17: Refactoring of main function
* fixes issue #21: Add auto-configuration command
Signed-off-by: Guyzmo <guyzmo+github@m0g.net>
create a command to autoconfigure git-repo, which would be:
which would then run an authentication loop, to query auth tokens, asking for user/pass for both github and gitlab, and record login:pass for bitbucket (until oauth config is implemented).
Eventually, it could ask for custom gitlab URLs as well.
and it would then populate
~/.gitconfig
with:Here's a mockup of how the interactions could be:
The text was updated successfully, but these errors were encountered: