Skip to main content

Module util

Module util 

Source

Structs§

StoredCredentials
Stored credentials for the CLI
TokenResponse

Functions§

admin_surface_enabled
api_request
Execute an authenticated API request, print response, exit with structured code.
check_auth_configured
Check if auth is configured (without making a request). Returns (method_name, detail) or None.
client
config_path
env_flag_enabled
exit_error
is_admin_api_path
load_credentials
raw_api_request
Execute a raw API request and return the response (no printing). Used by doctor and other commands that need to inspect the response.
read_json_from_file
Read JSON from a file path or stdin (when path is “-”).
resolve_token
Resolve a Bearer token for API requests (priority order):
save_credentials