Loving this, and I realized we can run it from the console/notebook even more conveniently than from the terminal :)
BTW - I'm thinking whether the entry point should be named something a little bit shorter/more convenient to type, say ghauth or github-auth or similar? It's going to be a daily command, and the current name is a bit of a mouthful to type.
I also went through the GH docs looking for a way to automate things a bit further with a button, but the device flow seems to require explicitly visiting the login URL by hand, and it can't be iframed. The only thing I see to improve the flow would be to add a %magic version that runs the same cmd, but produces a nice HTML display in the console/notebook with a button that, upon click, both copies the code into the clipboard and opens the new URL.
I'll play with that idea and will make a new PR if it works.
Loving this, and I realized we can run it from the console/notebook even more conveniently than from the terminal :)
BTW - I'm thinking whether the entry point should be named something a little bit shorter/more convenient to type, say
ghauth
orgithub-auth
or similar? It's going to be a daily command, and the current name is a bit of a mouthful to type.I also went through the GH docs looking for a way to automate things a bit further with a button, but the device flow seems to require explicitly visiting the login URL by hand, and it can't be iframed. The only thing I see to improve the flow would be to add a
%magic
version that runs the same cmd, but produces a nice HTML display in the console/notebook with a button that, upon click, both copies the code into the clipboard and opens the new URL.I'll play with that idea and will make a new PR if it works.