Describe the feature or problem you’d like to solve
When I have set GH_ENTERPRISE_TOKEN and GH_HOST environmental variables and run gh auth token, I get no oauth token. I would expect it to return the token regardless of whether it is GH_TOKEN or GH_ENTERPRISE_TOKEN.
Proposed solution
gh auth token returns the token used, whether it is GH_TOKEN or GH_ENTERPRISE_TOKEN.
Other Discussion
gh auth token --hostname <hostname> does the same thing, but if you are only using GitHub Enterprise then it could become tedious to always put --hostname.
Describe the feature or problem you’d like to solve
When I have set
GH_ENTERPRISE_TOKENandGH_HOSTenvironmental variables and rungh auth token, I getno oauth token. I would expect it to return the token regardless of whether it isGH_TOKENorGH_ENTERPRISE_TOKEN.Proposed solution
gh auth tokenreturns the token used, whether it isGH_TOKENorGH_ENTERPRISE_TOKEN.Other Discussion
gh auth token --hostname <hostname>does the same thing, but if you are only using GitHub Enterprise then it could become tedious to always put --hostname.