Commit graph

28 commits

Author SHA1 Message Date
637dc564fe
server: use configurable socket path; remove unused import
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Icf8542f6d43f2a4c6424714886afb8416a6a6964
2026-03-29 21:26:20 +03:00
f3f5b9de93
commands: add confirmation prompts for destructive operations
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: If84f778b42864acb13ba0a70aa93bbb56a6a6964
2026-03-29 21:26:19 +03:00
1768c14a33
interactive: improve general usage with vi mode & history; add shortcuts
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I5bf85f6ad656ddc3c8246f07630658806a6a6964
2026-03-29 21:26:18 +03:00
ec229485d4
cli: add --socket, --yes flags and shell completions
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I7cfd2149ff2c7599f9c6b192559ee4956a6a6964
2026-03-29 21:26:17 +03:00
36f0f60879
lib: add some basic tests
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a696493dad898ba0622e9e683b83deffce2d9
2025-10-03 10:20:39 +03:00
e31062d0ed
commands: add basic tests 2025-06-12 19:36:26 +03:00
69f69ece07
treewide: unify command processing and improve error handling 2025-06-12 18:59:15 +03:00
74f2927b86
mrc: refactor interactive mode into its own module 2025-06-12 18:59:14 +03:00
f21b0941a1
cli: remove redundant import 2025-06-12 18:59:10 +03:00
db35594121
treewide: better error handling 2025-05-23 07:58:03 +03:00
e63e463140
fix HTTP response format and improve connection logging
Now curl helps debug invalid requests, hell yeah.
2025-02-05 03:53:18 +03:00
2cf04583c1
move bind address to clap args; better env handling for credentials 2025-02-05 03:03:10 +03:00
ea085ba5fa
read authentication token from the environment 2024-12-22 19:24:41 +03:00
45bef8e582
initial server implementation 2024-12-22 19:12:35 +03:00
7591a8d2f4
separate cli and server implementations 2024-12-22 19:12:24 +03:00
783f6d657b
cli: interactive mode 2024-12-15 21:32:23 +03:00
674bb719de
lib: generic Errors section to satisfy linter 2024-12-15 21:28:14 +03:00
3d542f5427
lib: clippy pedantic 2024-12-15 21:28:13 +03:00
a57692dc39
lib: document target 2024-12-15 21:28:12 +03:00
d30a19a7c9
move generic functions into lib target 2024-12-15 21:28:11 +03:00
21b7df991b
begin refactoring common logic into lib target 2024-12-15 21:28:10 +03:00
1f6b8a717e
consolidate the command execution logic
We can wrap the `send_ipc_command` call and handle the response.
2024-12-15 21:28:09 +03:00
0fca6f1622
clippy 2024-12-15 21:28:08 +03:00
48456cbfa5
document commands 2024-12-15 21:28:07 +03:00
fe89860f5b
error if add cmd is invoked without files 2024-12-15 21:28:06 +03:00
af697ff594
terminate IPC messages with newlines
MPV will not accept them otherwise.
2024-12-15 21:28:05 +03:00
56328c71f9
init logging via tracing 2024-12-15 21:28:04 +03:00
16e9a4be6c
initial commit 2024-12-15 21:28:04 +03:00