Expand description
Spotify CLI library
This module exposes the internal components for integration testing.
Modules§
- cli
- CLI argument definitions and parsing.
- constants
- Application-wide constants.
- endpoints
- http
- HTTP client layer for Spotify API communication.
- io
- logging
- Structured logging configuration.
- oauth
- OAuth 2.0 authentication with PKCE for Spotify Web API.
- rpc
- JSON-RPC daemon module
- storage
- Persistent storage for configuration, tokens, and pins.
- types
- Typed response structures for Spotify API.
Macros§
- api_
error - Create an API error response from HttpError (preserves status code)
- auth_
error - Create an auth error response (401, ErrorKind::Auth)
- log_
command - Helper macro for structured command logging.
- log_
command_ complete - Helper macro for logging command completion with timing.
- resource_
check - Generate a “check if resources are saved” command
- resource_
get - Generate a “get single resource by ID” command
- resource_
list - Generate a “list resources with pagination” command
- resource_
list_ with_ id - Generate a “list sub-resources with ID and pagination” command (e.g., show episodes, audiobook chapters)
- resource_
remove - Generate a “remove resources” command
- resource_
save - Generate a “save resources” command
- storage_
error - Create a storage error response (500, ErrorKind::Storage)