Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/commands/recording/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const RECORDING_ACTION_VALUES = ['start', 'stop'] as const;
const recordCommandDescription =
'Start or stop a screen recording for the active app session or, where supported, the selected device, or build a contact-sheet PNG from a recording already exported. Long Android recordings can return multiple video artifacts; HarmonyOS supports whole-screen recording on physical devices.';
const traceCommandDescription =
'Start or stop trace-log capture and return the resulting artifact when capture ends. Use the same artifact path for the matching start and stop requests when an explicit path is required.';
'Start or stop trace-log capture and return the resulting artifact when capture ends. Without a path, start writes a timestamped trace log named after the session in the sessions directory of the daemon state; a path on stop moves the finished trace there.';

// `record stop` prints the artifact path, which callers capture into a variable.
const recordCommandOptions = { parseableOutput: true } as const;
Expand Down Expand Up @@ -89,8 +89,8 @@ const recordCliSchema = {
} as const satisfies CommandSchemaOverride;

const traceCliSchema = {
usageOverride: 'trace start <path> | trace stop <path>',
listUsageOverride: 'trace start <path> | trace stop <path>',
usageOverride: 'trace start [path] | trace stop [path]',
listUsageOverride: 'trace start [path] | trace stop [path]',
positionalArgs: ['start|stop', 'path?'],
} as const satisfies CommandSchemaOverride;

Expand Down Expand Up @@ -142,7 +142,6 @@ export const traceCommandFacet = defineCommandFacet({
name: TRACE_COMMAND_NAME,
text: {
summary: 'Start or stop trace capture',
cliDetail: 'Pass that path as the same positional argument to start and stop.',
},
metadata: traceCommandMetadata,
run: (client, input) => client.recording.trace(input),
Expand Down
2 changes: 1 addition & 1 deletion src/commands/schema/cli-help-topics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ test('commands topic includes concise command catalog entries', async () => {
assert.doesNotMatch(usageText, /^ {2}rotate-gesture <degrees>/m);
assert.match(usageText, /orientation <orientation>/);
assert.match(usageText, /record start \[path\] \| record stop/);
assert.match(usageText, /trace start <path> \| trace stop <path>/);
assert.match(usageText, /trace start \[path\] \| trace stop \[path\]/);
});

test('gesture help documents selectors and pinned refs for both drag endpoints', async () => {
Expand Down
Loading