Skip to main content

Crate sharepoint_cli

Crate sharepoint_cli 

Source
Expand description

sharepoint-cli library.

§Public API

The genuinely public surface is small: auth, config, and graph are exported pub because integration tests in tests/ import internals from them directly (e.g. AuthContext, token_cache, ResolvedConfig, GraphClient). Everything else is pub(crate) — it is implementation detail that the binary (main.rs) and command modules need within the crate but that external consumers should not depend on.

Modules§

auth
Authentication subsystem (device-code flow only in v0.1).
cli
CLI entry point: clap derive structs and the run dispatcher.
config
Configuration: profile-based TOML at ~/.config/sharepoint/config.toml, merged with SHAREPOINT_* env vars and CLI flags.
error
Error types and exit code mapping.
graph
Microsoft Graph client.
output
Output configuration: TTY detection, JSON/table/quiet modes, color, and the structured error contract.