aboutsummaryrefslogtreecommitdiffstats
path: root/src/ctl.rs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ctl: interactive shell with history, editing and completionsalmonik6 days1-0/+359
`rsp ctl` opens a prompt in the spirit of bluetoothctl. Lines are parsed with the same clap definitions as the one-shot CLI, so every command and flag works exactly as it does from a terminal, `help <command>` included. Tab completes subcommands, and track/album/artist paths for `play` through `db-complete` (run out of process, keeping its 100 ms timeout away from the input loop). History lives in the state directory. Piped input falls back to a plain line loop, so `rsp ctl < commands` works without a terminal.