Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetToken ¶
GetToken retrieves an authentication token for the given host using git credential helper. Returns username and password/token, or empty strings if not available. Uses a timeout to prevent hanging if the credential helper prompts interactively. If path is non-empty, it searches git config for a path-based credential section (e.g., [credential "https://github.com/org"]) and uses the matching path for lookup.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.