Skip to main content

Module config

Module config 

Source
Expand description

Configuration: profile-based TOML at ~/.config/sharepoint/config.toml, merged with SHAREPOINT_* env vars and CLI flags.

There is intentionally no separate [default] section. Profiles live under [profile.<name>]; active_profile selects the default when no override is provided, and the literal name default remains the fallback.

Structs§

ConfigFile
Profile
ResolvedConfig
Fully resolved runtime settings (after merging file + env + flags).

Constants§

DEFAULT_GRAPH_ENDPOINT
DEFAULT_LOGIN_ENDPOINT
DEFAULT_PROFILE
ENV_ACCESS_TOKEN
ENV_CLIENT_ID
ENV_DEBUG_HTTP
ENV_DEFAULT_SITE
ENV_GRAPH_ENDPOINT
ENV_LOGIN_ENDPOINT
ENV_PROFILE
ENV_READ_ONLY
ENV_REFRESH_TOKEN
ENV_TENANT

Functions§

config_path
load_file
profile_summaries
remove_profile
resolve
Merge a ConfigFile with environment variables and explicit CLI flags.
save_file
token_cache_path
use_profile
write_profile_tenant_id
Update a profile’s tenant_id in the file and persist atomically.