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

Store token in a dotfile #9

Open
jayvdb opened this issue Jan 7, 2020 · 3 comments
Open

Store token in a dotfile #9

jayvdb opened this issue Jan 7, 2020 · 3 comments

Comments

@jayvdb
Copy link
Contributor

jayvdb commented Jan 7, 2020

Envvars are better than cli args, but a dotfile is better.

There should be a common dotfile for all github cli apps .. ;-)

@jayvdb
Copy link
Contributor Author

jayvdb commented Jan 7, 2020

https://github.com/search?q=token+netrc there are two gems about storing it in .netrc . https://github.com/sloria/tinynetrc supports writing to .netrc

There are also quite a few issues about that. divinites/gissues#114 stands out; I pinged the issue creator.

@fridex
Copy link
Owner

fridex commented Jan 7, 2020

@jayvdb thanks for opening issues and working on this. Unfortunately, given my time, I'm not able to work on this in the near future. Are you willing to take action? I'm happy to review any PRs coming in.

@jayvdb
Copy link
Contributor Author

jayvdb commented Jan 7, 2020

python/cpython#127 fixes netrc parsing, but doesnt add write support.

guyzmo/git-repo#63 was also considering putting github tokens in .netrc, but didnt implement that.

I am still in 'try before I buy' mode, getting a feel for the new-ish github client libraries available.

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

No branches or pull requests

2 participants