credential

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetToken

func GetToken(host, path string) (username, password string, err error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL