gitty icon indicating copy to clipboard operation
gitty copied to clipboard

when gitty does not find either GITHUB_TOKEN or GITTY_TOKEN - open the browser with the link to create one

Open elbosso opened this issue 2 years ago • 2 comments

it would be best, if the form would then be pre-filled with the needed permissions

elbosso avatar Sep 07 '21 16:09 elbosso

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 .

FiXato avatar Sep 07 '21 20:09 FiXato

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.

elbosso avatar Sep 08 '21 08:09 elbosso