INNER CODE UNIT · TypeScript
handleList
openclaw/mcporter · src/cli.ts:101
export async function handleList(
...args: Parameters<typeof import('./cli/list-command.js').handleList>
): ReturnType<typeof import('./cli/list-command.js').handleList> {
const { handleList: imported } = await import('./cli/list-command.js');
return imported(...args);
}
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();