INNER CODE UNIT · TypeScript
handleResource
openclaw/mcporter · src/cli.ts:108
export async function handleResource(
...args: Parameters<typeof import('./cli/resource-command.js').handleResource>
): ReturnType<typeof import('./cli/resource-command.js').handleResource> {
const { handleResource: imported } = await import('./cli/resource-command.js');
return imported(...args);
}
export async function runCli(argv: string[]): Promise<void> {
const args = [...argv];
if (args.length === 0) {
printHelp();
process.exit(1);
return;
}
const context = buildGlobalContext(args);
if ('exit' in context) {
process.exit(context.code);