@icarusmx/creta 0.7.2 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/creta.js +7 -19
- package/package.json +1 -1
package/bin/creta.js
CHANGED
|
@@ -579,26 +579,14 @@ function showHelp() {
|
|
|
579
579
|
}
|
|
580
580
|
|
|
581
581
|
async function startEnunciadosSelector() {
|
|
582
|
-
//
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
// Try interactive mode unless explicitly disabled
|
|
591
|
-
if (hasSetRawMode && !process.env.CRETA_NO_INTERACTIVE) {
|
|
592
|
-
try {
|
|
593
|
-
return await startEnunciadosSelectorInteractive()
|
|
594
|
-
} catch (error) {
|
|
595
|
-
// If interactive mode fails, fall back to numbered selection
|
|
596
|
-
console.log('\nCambiando a modo de selección numérica...\n')
|
|
597
|
-
}
|
|
582
|
+
// Always try interactive mode first, fall back only if it fails
|
|
583
|
+
try {
|
|
584
|
+
return await startEnunciadosSelectorInteractive()
|
|
585
|
+
} catch (error) {
|
|
586
|
+
// If interactive mode fails, fall back to numbered selection
|
|
587
|
+
console.log('\nModo interactivo no disponible, usando selección numérica...\n')
|
|
588
|
+
return await startEnunciadosSelectorFallback()
|
|
598
589
|
}
|
|
599
|
-
|
|
600
|
-
// Fallback to numbered selection
|
|
601
|
-
return await startEnunciadosSelectorFallback()
|
|
602
590
|
}
|
|
603
591
|
|
|
604
592
|
async function startEnunciadosSelectorInteractive() {
|