Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Merge pull request #2556 from sloemo01/feat/cli-project-duration

Richie McIlroy4cacde7a70bf
diff --cc apps/cli/src/guide.rs
index e20a349fd,2e8899be7..f7ecefbff
--- a/apps/cli/src/guide.rs
+++ b/apps/cli/src/guide.rs
@@@ -198,18 -198,17 +198,24 @@@ fn build() -> Guide
),
..cmd(
"export",
- "Render a .cap project to a video file.",
+ "Render one or more .cap projects to video files.",
OutputMode::Ndjson,
- &["Progress", "Completed", "Error"],
+ &[
+ "Progress",
+ "Completed",
+ "Error",
+ "FileStarted",
+ "FileFailed",
+ "BatchCompleted",
+ ],
)
},
+ cmd(
+ "export-preview",
+ "Render a still frame from a .cap project at a given timestamp. JSON emits jpeg_base64 plus frame metadata.",
+ OutputMode::AlwaysJson,
+ &[],
+ ),
cmd(
"screenshot",
"Capture a still of a screen/window. JSON emits {path,width,height}.",