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

Function parseCliInvocation

cli/src/cli/run.ts:61–67  ·  view source on GitHub ↗
(commands: Command[], argv: string[], initOptions: InitConfig)

Source from the content-addressed store, hash-verified

59 } finally {
60 if (oneOffSession) {
61 await session.dispose();
62 }
63 }
64}
65
66async function parseCliInvocation(commands: Command[], argv: string[], initOptions: InitConfig) {
67 const groupName = argv[2]!;
68 const commandName = argv[3]!;
69
70 if (groupName === 'help' || groupName === '--help' || groupName === '-h') {

Callers 1

runCommandFunction · 0.85

Calls 2

getCommandFunction · 0.90
getCommandArgumentsFunction · 0.90

Tested by

no test coverage detected