diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-02 13:35:56 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-02 13:35:56 +0100 |
| commit | 5dfb5b4ce521a44eb4e9173d20c58e665c78e979 (patch) | |
| tree | 514508f9bef90444b867a68abfeb2ad365c44d14 /Cargo.lock | |
| parent | audio: open the output at the track's rate instead of pw-alsa's 44100 (diff) | |
| download | rsplayer-5dfb5b4ce521a44eb4e9173d20c58e665c78e979.tar.gz rsplayer-5dfb5b4ce521a44eb4e9173d20c58e665c78e979.zip | |
ctl: interactive shell with history, editing and completion
`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.
Diffstat (limited to 'Cargo.lock')
| -rw-r--r-- | Cargo.lock | 82 |
1 files changed, 82 insertions, 0 deletions
| @@ -19,6 +19,7 @@ dependencies = [ | |||
| 19 | "rand 0.10.1", | 19 | "rand 0.10.1", |
| 20 | "reqwest", | 20 | "reqwest", |
| 21 | "rusqlite", | 21 | "rusqlite", |
| 22 | "rustyline", | ||
| 22 | "serde", | 23 | "serde", |
| 23 | "serde_json", | 24 | "serde_json", |
| 24 | "symphonia", | 25 | "symphonia", |
| @@ -422,6 +423,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
| 422 | checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9" | 423 | checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9" |
| 423 | 424 | ||
| 424 | [[package]] | 425 | [[package]] |
| 426 | name = "clipboard-win" | ||
| 427 | version = "5.4.3" | ||
| 428 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 429 | checksum = "052af7878466feccda12ba7a6a67d019d712f296809559b47c12c8cc196d3a9a" | ||
| 430 | dependencies = [ | ||
| 431 | "error-code", | ||
| 432 | ] | ||
| 433 | |||
| 434 | [[package]] | ||
| 425 | name = "cmake" | 435 | name = "cmake" |
| 426 | version = "0.1.58" | 436 | version = "0.1.58" |
| 427 | source = "registry+https://github.com/rust-lang/crates.io-index" | 437 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| @@ -667,6 +677,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
| 667 | checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099" | 677 | checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099" |
| 668 | 678 | ||
| 669 | [[package]] | 679 | [[package]] |
| 680 | name = "endian-type" | ||
| 681 | version = "0.2.0" | ||
| 682 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 683 | checksum = "869b0adbda23651a9c5c0c3d270aac9fcb52e8622a8f2b17e57802d7791962f2" | ||
| 684 | |||
| 685 | [[package]] | ||
| 670 | name = "enumflags2" | 686 | name = "enumflags2" |
| 671 | version = "0.7.12" | 687 | version = "0.7.12" |
| 672 | source = "registry+https://github.com/rust-lang/crates.io-index" | 688 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| @@ -704,6 +720,12 @@ dependencies = [ | |||
| 704 | ] | 720 | ] |
| 705 | 721 | ||
| 706 | [[package]] | 722 | [[package]] |
| 723 | name = "error-code" | ||
| 724 | version = "3.4.0" | ||
| 725 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 726 | checksum = "0b5343afd4a8365a643ac588dab4cf234a190c7f6c88c9f6dd6ffe00837661b7" | ||
| 727 | |||
| 728 | [[package]] | ||
| 707 | name = "event-listener" | 729 | name = "event-listener" |
| 708 | version = "5.4.1" | 730 | version = "5.4.1" |
| 709 | source = "registry+https://github.com/rust-lang/crates.io-index" | 731 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| @@ -961,6 +983,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
| 961 | checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" | 983 | checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" |
| 962 | 984 | ||
| 963 | [[package]] | 985 | [[package]] |
| 986 | name = "home" | ||
| 987 | version = "0.5.12" | ||
| 988 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 989 | checksum = "cc627f471c528ff0c4a49e1d5e60450c8f6461dd6d10ba9dcd3a61d3dff7728d" | ||
| 990 | dependencies = [ | ||
| 991 | "windows-sys 0.61.2", | ||
| 992 | ] | ||
| 993 | |||
| 994 | [[package]] | ||
| 964 | name = "http" | 995 | name = "http" |
| 965 | version = "1.4.0" | 996 | version = "1.4.0" |
| 966 | source = "registry+https://github.com/rust-lang/crates.io-index" | 997 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| @@ -1459,6 +1490,15 @@ dependencies = [ | |||
| 1459 | ] | 1490 | ] |
| 1460 | 1491 | ||
| 1461 | [[package]] | 1492 | [[package]] |
| 1493 | name = "nibble_vec" | ||
| 1494 | version = "0.1.0" | ||
| 1495 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 1496 | checksum = "77a5d83df9f36fe23f0c3648c6bbb8b0298bb5f1939c8f2704431371f4b84d43" | ||
| 1497 | dependencies = [ | ||
| 1498 | "smallvec", | ||
| 1499 | ] | ||
| 1500 | |||
| 1501 | [[package]] | ||
| 1462 | name = "nix" | 1502 | name = "nix" |
| 1463 | version = "0.31.2" | 1503 | version = "0.31.2" |
| 1464 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1504 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| @@ -1861,6 +1901,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
| 1861 | checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" | 1901 | checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" |
| 1862 | 1902 | ||
| 1863 | [[package]] | 1903 | [[package]] |
| 1904 | name = "radix_trie" | ||
| 1905 | version = "0.3.0" | ||
| 1906 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 1907 | checksum = "3b4431027dcd37fc2a73ef740b5f233aa805897935b8bce0195e41bbf9a3289a" | ||
| 1908 | dependencies = [ | ||
| 1909 | "endian-type", | ||
| 1910 | "nibble_vec", | ||
| 1911 | ] | ||
| 1912 | |||
| 1913 | [[package]] | ||
| 1864 | name = "rand" | 1914 | name = "rand" |
| 1865 | version = "0.9.4" | 1915 | version = "0.9.4" |
| 1866 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1916 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| @@ -2115,6 +2165,26 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
| 2115 | checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" | 2165 | checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" |
| 2116 | 2166 | ||
| 2117 | [[package]] | 2167 | [[package]] |
| 2168 | name = "rustyline" | ||
| 2169 | version = "19.0.0" | ||
| 2170 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 2171 | checksum = "56e1d6bd81c2d5feafd2419138df9183c45a10a492c4e873b8b0acb8eb2b549e" | ||
| 2172 | dependencies = [ | ||
| 2173 | "bitflags", | ||
| 2174 | "clipboard-win", | ||
| 2175 | "home", | ||
| 2176 | "libc", | ||
| 2177 | "log", | ||
| 2178 | "memchr", | ||
| 2179 | "nix", | ||
| 2180 | "radix_trie", | ||
| 2181 | "unicode-segmentation", | ||
| 2182 | "unicode-width", | ||
| 2183 | "utf8parse", | ||
| 2184 | "windows-sys 0.61.2", | ||
| 2185 | ] | ||
| 2186 | |||
| 2187 | [[package]] | ||
| 2118 | name = "ryu" | 2188 | name = "ryu" |
| 2119 | version = "1.0.23" | 2189 | version = "1.0.23" |
| 2120 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2190 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| @@ -2843,6 +2913,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
| 2843 | checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" | 2913 | checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" |
| 2844 | 2914 | ||
| 2845 | [[package]] | 2915 | [[package]] |
| 2916 | name = "unicode-segmentation" | ||
| 2917 | version = "1.13.3" | ||
| 2918 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 2919 | checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8" | ||
| 2920 | |||
| 2921 | [[package]] | ||
| 2922 | name = "unicode-width" | ||
| 2923 | version = "0.2.3" | ||
| 2924 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 2925 | checksum = "ca718471876992059f251e33aafc334346ada08042b7661dd1fe313a9bced557" | ||
| 2926 | |||
| 2927 | [[package]] | ||
| 2846 | name = "unicode-xid" | 2928 | name = "unicode-xid" |
| 2847 | version = "0.2.6" | 2929 | version = "0.2.6" |
| 2848 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2930 | source = "registry+https://github.com/rust-lang/crates.io-index" |
