-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for http_unix_socket #30
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic; thanks for adding this
gh.go
Outdated
return err | ||
var notFoundError iconfig.NotFoundError | ||
if errors.As(err, ¬FoundError) { | ||
return fmt.Errorf("auth token not found for host %s", opts.Host) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: "authentication token" instead of "auth token"
Also, should this error be of a unique type so that integrators can handle it specifically?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that is a good idea, but can be implemented in a follow up PR.
This PR adds support for automatically resolving
gh
confighttp_unix_socket
.Closes #2
cc cli/cli#5560