spotify-cli / commands
commands
Command registry for the Spotify CLI.
Maps command names (e.g. "play", "search") to their handler functions and descriptions. This is the single source of truth for all available CLI commands.
Interfaces
ParsedArgs
Defined in: src/commands/index.ts:12
Parsed CLI arguments passed to each command handler.
Properties
flags
flags:
Record<string,string>
Defined in: src/commands/index.ts:16
Flag values keyed by name (without -- prefix). Boolean flags have an empty string value.
multiFlags
multiFlags:
Record<string,string[]>
Defined in: src/commands/index.ts:18
Flags that appeared more than once. All values collected in order.
positional
positional:
string[]
Defined in: src/commands/index.ts:14
Non-flag arguments in the order they were provided.
Type Aliases
CommandHandler()
CommandHandler = (
args) =>Promise<void>
Defined in: src/commands/index.ts:22
A function that handles a CLI command.
Parameters
args
Returns
Promise<void>
Variables
commands
constcommands:Map<string,CommandDef>
Defined in: src/commands/index.ts:75
Registry of all CLI commands, keyed by command name (space-separated for subcommands).