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

Function run

cli/src/cli/index.ts:25–31  ·  view source on GitHub ↗
(commands: Command[], initOptions: InitConfig)

Source from the content-addressed store, hash-verified

23export type { CliSession } from './run';
24
25export async function run(commands: Command[], initOptions: InitConfig) {
26 if (shouldStartRepl(Bun.argv)) {
27 await startRepl(commands, initOptions);
28 } else {
29 await runSingleInvocation(commands, Bun.argv, initOptions);
30 }
31}
32
33function shouldStartRepl(argv: string[]): boolean {
34 return argv[2] == null || argv[2] === '';

Callers 1

proton-drive.tsFile · 0.90

Calls 3

startReplFunction · 0.90
runSingleInvocationFunction · 0.90
shouldStartReplFunction · 0.85

Tested by

no test coverage detected