Skip to main content

Module gh_cli

Module gh_cli 

Source
Expand description

GitHub CLI authentication integration.

Uses the gh CLI tool to obtain authentication tokens securely.

Functionsยง

get_token
Get the authentication token from the GitHub CLI.
get_token_for_host
Get token for a specific GitHub host (for GitHub Enterprise).
get_username
Get the authenticated GitHub username.
is_authenticated
Check if the user is authenticated with the GitHub CLI.
is_installed
Check if the GitHub CLI is installed.