gitty
gitty copied to clipboard
when gitty does not find either GITHUB_TOKEN or GITTY_TOKEN - open the browser with the link to create one
it would be best, if the form would then be pre-filled with the needed permissions
While I do like the idea of offering to open the browser with the appropriate 'create token' link, I'm not sure if I would do it automatically. Sometimes I'm in a session where I've forgotten to load the appropriate env variables, and would not like it to automatically open my browser.
Maybe offer to open it instead (e.g. wait for user input, so the user can ctrl-c (or answer 'no')) so they can abort if they don't want to create a new token?
Pre-filling it with needed permissions shouldn't be an issue though; just use the same link as used in #14 .
Yeah, I agree - in my comment re #14 i stated it so, that there should be a question first. maybe one could set a config item to suppress it permanently or a command line switch to suppress it for the current execution.