If I make a web client from which this process would be run, the user would sign in through OAuth with their Github account. This would eliminate the step where they have to manually generate their personal access token and paste it into the CLI.
You could authenticate the user via OAuth in a CLI application.
Checkout hub, which is a CLI also written in Go, to see how they do it, but the UX flows like this:
You could authenticate the user via OAuth in a CLI application.
Checkout hub, which is a CLI also written in Go, to see how they do it, but the UX flows like this:
On first use,
hub
CLI will require you to authenticate to via your Github credentials, generate a token, and store it in:All subsequent
hub
(orgit
, if you aliased it togit
) no longer require authenticate or to explicitly supply a token.ahh thank you this is helpful!