15 lines
500 B
TypeScript
15 lines
500 B
TypeScript
import type { Command } from 'commander';
|
|
import { getConfigPath } from './shared.js';
|
|
import { runSetup } from './setup.js';
|
|
|
|
export function registerOnboardCommand(program: Command): void {
|
|
program
|
|
.command('onboard')
|
|
.description('Run guided onboarding (alias for setup wizard)')
|
|
.option('-c, --config <path>', 'Config file path')
|
|
.action(async (opts: { config?: string }) => {
|
|
const configPath = opts.config ?? getConfigPath();
|
|
await runSetup(configPath);
|
|
});
|
|
}
|