-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvingadevs-modular.js
More file actions
38 lines (31 loc) · 899 Bytes
/
vingadevs-modular.js
File metadata and controls
38 lines (31 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env node
import 'dotenv/config';
import { executarModoInterativo } from './src/cli/interactive.js';
import { validarApiKey } from './src/services/sentiment.js';
import { exibirErro } from './src/utils/display.js';
// ========================================
// VINGADEVS CLI - PONTO DE ENTRADA PRINCIPAL
// ========================================
/**
* Função principal da aplicação VingaDevs
* Coordena a inicialização e execução do CLI
*/
async function main() {
try {
// Validar API key antes de iniciar
validarApiKey();
// Iniciar modo interativo
await executarModoInterativo();
} catch (error) {
exibirErro(error);
process.exit(1);
}
}
// ========================================
// INICIALIZAÇÃO
// ========================================
// Executar aplicação principal
main().catch((error) => {
exibirErro(error);
process.exit(1);
});