feat: add list server command (#2314)

This commit is contained in:
CatsDeservePets authored and GitHub committed 2025-12-21 06:56:43 +01:00
1 parent f0f7cfbbed
commit 59a27bbaed
5 files changed
+36 -6

No files matched your search

+6 -2
View File
@@ -91,8 +91,8 @@ SERVER
-remote command
Send command to the running server (e.g. send, query or quit). See
REMOTE COMMANDS for more details.
Send command to the running server (i.e. send, query, list, quit, or
quit!). See REMOTE COMMANDS for more details.
-server
@@ -1960,6 +1960,10 @@ For example, to select a previous command using fzf and execute it:
lf -remote "send $id $cmd"
}}
The list command prints the IDs of all currently connected clients:
lf -remote 'list'
There is also a quit command to quit the server when there are no
connected clients left, and a quit! command to force quit the server by
closing client connections first: