gmuse.cli.auth#

CLI commands for secure credential management.

Module Contents#

Functions#

_exit_with_error

_print_table

_ensure_secure_backend_or_exit

set_credential

Store or replace a credential in the OS keyring.

status

Show credential availability and storage source.

remove_credential

Remove one or more stored credentials.

Data#

API#

gmuse.cli.auth.auth_app = 'Typer(...)'#
gmuse.cli.auth._exit_with_error(message: str, *, hint: str | None = None) NoReturn#
gmuse.cli.auth._print_table(title: str, rows: list[tuple[str, str, str]]) None#
gmuse.cli.auth._ensure_secure_backend_or_exit() None#
gmuse.cli.auth.set_credential(variable_name: str = typer.Argument(..., help='Environment variable name to store.'), force: bool = typer.Option(False, '--force', help='Replace an existing credential.')) None#

Store or replace a credential in the OS keyring.

gmuse.cli.auth.status(provider: str | None = None) None#

Show credential availability and storage source.

gmuse.cli.auth.remove_credential(variable_names: list[str] = typer.Argument(..., help='One or more environment variable names to delete.')) None#

Remove one or more stored credentials.