summaryrefslogtreecommitdiff
path: root/runtime/main.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-20 03:20:39 -0300
committerGabriel Schneider <[email protected]>2026-11-20 04:00:32 -0300
commita6c258bec5808ac2b6ef9d3362134e34e759c1c9 (patch)
treef785b15b2a3bcd0f7d3e8f92d7948af634c52b69 /runtime/main.zig
parent1967cf64dc6d7490d386db874cf1866b764f235c (diff)
downloadpardes-a6c258bec5808ac2b6ef9d3362134e34e759c1c9.tar.gz
pardes-a6c258bec5808ac2b6ef9d3362134e34e759c1c9.zip
docs: an attach is always a client, and a session registers again with a restarted daemon, in the documents: the manual's "How pardes runs" (docs/typ/running.typ: one Attach section, its figure of the in-place attach deleted from figures.typ, the glance and survival tables, the words), the guide's Sessions, the reference's /sessions and command line, the building chapter's daemon, the cheatsheet's line, `pardes help attach` (runtime/main.zig, docs/typ/command-line.txt from builtins-json), the Detach word's doc (core/builtins.zig, both builtins JSONs), docs/next-run.md as built (what went, counted on the change: 305 lines deleted, 94 added; the re-registration as built; --detach forking still not) with its figure (Before / Now), and the changelog's Unreleased; the book and the cheatsheet render (typst), tui shell-test 1046/1049 (3 skipped), core-test 855/1005 (150 skipped: the base's 856/1006 less the deleted `find` test)
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'runtime/main.zig')
-rw-r--r--runtime/main.zig21
1 files changed, 11 insertions, 10 deletions
diff --git a/runtime/main.zig b/runtime/main.zig
index 563461ed..a791ffec 100644
--- a/runtime/main.zig
+++ b/runtime/main.zig
@@ -280,17 +280,18 @@ const cmds = std.EnumArray(Cmd, Doc).init(.{
.attach = .{
.group = .Sessions,
.args = "[NAME]",
- .line = "show a detached session here (HOST:NAME: over ssh)",
+ .line = "show a session here, as a client (HOST:NAME: over ssh)",
.doc =
- \\Show a detached session here: in this terminal for pardes, a window
- \\for pardes-gui. Bare, the one detached session (with none, the one
- \\session). One with a frontend already, or of the other kind, is joined
- \\as a client. HOST:NAME is a client of session NAME on another machine,
- \\over `ssh -L` to its pardes-replica.sock ($PARDES_SSH: the ssh
- \\command, default ssh; $PARDES_REMOTE_RUNTIME: its runtime directory,
- \\if not this one's path); SOCK:NAME goes through a socket forwarded
- \\already (a path, with a '/'). Returns when the session detaches or
- \\ends.
+ \\Show a session here as a client: a process of its own, with a copy of
+ \\the session's core and a view of its own, in this terminal for pardes,
+ \\a window for pardes-gui, whatever the session was started in. Bare,
+ \\the one detached session (with none, the one session). HOST:NAME is a
+ \\client of session NAME on another machine, over `ssh -L` to its
+ \\pardes-replica.sock ($PARDES_SSH: the ssh command, default ssh;
+ \\$PARDES_REMOTE_RUNTIME: its runtime directory, if not this one's
+ \\path); SOCK:NAME goes through a socket forwarded already (a path, with
+ \\a '/'). Returns when it is let go: its Detach or its terminal or window
+ \\closing (the session runs on), or the session's end.
,
.examples = &.{
.{ "pardes attach", "the one detached session" },