feat: 恢复 cloud 子命令注册
从 feat/server-refactor 分支还原 cloud 命令的 CLI 注册逻辑, 动态导入 cloudHandler 并透传所有参数给 cs-cloud 二进制。 Co-Authored-By: Auto <noreply@anthropic.com>
This commit is contained in:
parent
876dc94ed5
commit
f5d6814a01
10
src/main.tsx
10
src/main.tsx
|
|
@ -6656,6 +6656,16 @@ async function run(): Promise<CommanderCommand> {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Cloud command - manage cs-cloud daemon (download binary + forward commands)
|
||||||
|
program
|
||||||
|
.command('cloud [args...]', { noHelp: true })
|
||||||
|
.description('Manage cloud daemon (register device and connect via WebSocket tunnel)')
|
||||||
|
.allowUnknownOption()
|
||||||
|
.action(async (args: string[]) => {
|
||||||
|
const { cloudHandler } = await import('./cli/handlers/cloud.js');
|
||||||
|
await cloudHandler(args);
|
||||||
|
});
|
||||||
|
|
||||||
// Update command - check and install updates
|
// Update command - check and install updates
|
||||||
program
|
program
|
||||||
.command('update')
|
.command('update')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user