Files
OmniRoute/bin/cli/commands/provider-cmd.mjs
diegosouzapw 4ed8e4e673 feat(cli): migrar comandos modulares para Commander (Fase 1.2)
Migra os 8 comandos restantes (doctor, setup, providers, config, status,
logs, update, provider) de parseArgs manual para a API do Commander.
Cada arquivo exporta register<Nome>(program) e run*Command(opts = {}).
Deleta bin/cli/index.mjs (substituído por commands/registry.mjs).
Remove dependência de bin/cli/args.mjs em todos os comandos migrados.
Corrige CWE-310 em doctor.mjs: authTagLength explícito no createDecipheriv.
2026-05-14 22:38:59 -03:00

19 lines
698 B
JavaScript

export function registerProvider(program) {
program
.command("provider [subcommand]")
.description("Manage provider connections (use 'providers' for the full interface)")
.allowUnknownOption()
.allowExcessArguments()
.action(() => {
console.log(`
Use \`omniroute providers\` for the full provider management interface:
omniroute providers available — show provider catalog
omniroute providers list — list configured connections
omniroute providers test <name> — test a provider connection
omniroute providers test-all — test all active connections
omniroute providers validate — validate local configuration
`);
});
}