From aa4b297283d01c8fa22cee76b0f3785403c5dc4c Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 23 Nov 2026 01:08:59 +0000 Subject: pkgs/claude-remote: NAME, --COMMAND and options, in any order Like claude-inbox: the commands are options now (--list, --inspect, --start, --stop, --restart, --attach, --log, --rename, --reset, --remove), in one set with the others, without overlaps, so the only words are the names; without a command, it's --inspect NAME, or else --list. rename's --stop (not asking before stopping OLD) is -f, like reset's and remove's, as --stop is the command now; OLD and NEW can come as --from=OLD and --to=NEW, too, in any order; journalctl's options, for --log, come after --. An option that isn't for the command is an error, not ignored. The messages, the help, the completion (the command's options, but those used, and as many names as it takes), and the layer's comments, in the new syntax. --- configs/claude.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'configs') diff --git a/configs/claude.nix b/configs/claude.nix index bf64e41..4893a83 100644 --- a/configs/claude.nix +++ b/configs/claude.nix @@ -3,16 +3,16 @@ # One per remote, claude-remote-control@NAME, main by default; more by # adding them in a layer: # systemd.targets.multi-user.wants = [ "claude-remote-control@NAME.service" ]; -# or with claude-remote start NAME (root's tool for the remotes, see +# or with claude-remote --start NAME (root's tool for the remotes, see # pkgs/claude-remote.nix), which lasts, across reboots, until -# claude-remote stop NAME (see stateDir). One taken out of the layers +# claude-remote --stop NAME (see stateDir). One taken out of the layers # goes on like that, too, after the reboot (see staticFile). # Or a remote can be an interactive session instead, claude-interactive@NAME -# (see istateDir): claude-remote start NAME --interactive. +# (see istateDir): claude-remote --start NAME --interactive. # A remote is a context: it works in ~/remotes/NAME, which is its project # for Claude Code (sessions, memory, trust), on the repositories in ~/src, # which all remotes share. Each runs as claude in a tmux of its own, -# which root opens with claude-remote attach [NAME]. Once, as root: +# which root opens with claude-remote --attach [NAME]. Once, as root: # runuser -l claude -c 'claude auth login', which the remotes wait for # (see login). Remote Control's questions (enable it, once per # machine; trust ~/remotes/NAME) the unit answers. @@ -275,7 +275,7 @@ in # that are static now, which it forgets instead; and before that, makes # the ones that were static at the last boot, but aren't anymore (taken # out of the configuration), dynamic, so they go on running, as long as - # they have a directory (to retire one: claude-remote stop NAME); and + # they have a directory (to retire one: claude-remote --stop NAME); and # starts the static ones, too, which multi-user.target's start skipped # if there was no login yet. Once per boot, by the path unit below, # once there's a login. And the interactive sessions, likewise. -- cgit v1.3.1