MCPcopy Create free account
hub / github.com/ProtonDriveApps/sdk / buildCommandSynopsis

Function buildCommandSynopsis

cli/src/cli/help.ts:94–98  ·  view source on GitHub ↗
(command: Command)

Source from the content-addressed store, hash-verified

92}
93
94function printCommandSynopsisLine(command: Command) {
95 const body = buildCommandSynopsis(command);
96 console.log(`${ROW_INDENT}${command.group} ${command.name}${body ? ` ${body}` : ''}`);
97}
98
99function buildCommandSynopsis(command: Command): string {
100 const positionals = command.args || [];
101 const optionParts = visibleOptions(command).map(([name, opt]) => buildCommandSynopsisOption(name, opt));

Callers 1

printCommandSynopsisLineFunction · 0.85

Calls 3

visibleOptionsFunction · 0.85
filterMethod · 0.80

Tested by

no test coverage detected