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. The active profile is whichever block matches [profile.<name>]; the literal name default plays the special-default role.

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
resolve
Merge a ConfigFile with environment variables and explicit CLI flags.
save_file
token_cache_path
write_profile_tenant_id
Update a profile’s tenant_id in the file and persist atomically.