Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigDir string
ConfigDir overrides the config directory for testing. If empty, os.UserConfigDir() is used.
Functions ¶
func ResolveToken ¶
ResolveToken tries to find a GitHub token for the given host. It checks in order: env vars (GH_TOKEN/GITHUB_TOKEN), gh CLI config, jip config. Returns the token and a human-readable source description.
Types ¶
type HostConfig ¶
type HostConfig struct {
OAuthToken string `json:"oauth_token"`
}
HostConfig holds auth credentials for a single GitHub host.
Click to show internal directories.
Click to hide internal directories.