Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

docs(cli): clarify detach recording event behavior in guide

Richie McIlroy8cad91200deb
diff --git a/apps/cli/src/guide.rs b/apps/cli/src/guide.rs
index 308423a98..46d0a2d5b 100644
--- a/apps/cli/src/guide.rs
+++ b/apps/cli/src/guide.rs
@@ -155,11 +155,11 @@ fn build() -> Guide {
CommandDoc {
requires_duration: false,
notes: Some(
- "Use `--detach` to background it (returns immediately with recordingId+pid) and stop later with `cap record stop`.",
+ "The `started` then `stopped` sequence applies to the foreground run. With `--detach` the stream emits only `started` (or `error`) and returns immediately with recordingId+pid; the `stopped` event is delivered by `cap record stop`.",
),
..cmd(
"record start",
- "Start a recording. Emits `started` then `stopped` (success requires recordingMetaExists:true).",
+ "Start a recording. Foreground emits `started` then `stopped` (success requires recordingMetaExists:true); see notes for `--detach`.",
OutputMode::Ndjson,
&["started", "stopped", "error"],
)