Crate spotify_cli

Crate spotify_cli 

Source
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)