mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 04:12:10 +03:00
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.
19 lines
698 B
JavaScript
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
|
|
`);
|
|
});
|
|
}
|