[IMPROVED] Simplificar menú de ai_token.sh eliminando opción de salida explícita
- Elimina la opción 999 para salir del menú - Mantiene la funcionalidad de salir con la tecla ESC - Usa el comportamiento estándar de console.lib para manejo de cancelación 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
1ad34ff7b7
commit
453bd7e90f
1 changed files with 2 additions and 5 deletions
|
@ -5,7 +5,7 @@
|
||||||
#Author : Sora Rosero One <sora@rosero.one>
|
#Author : Sora Rosero One <sora@rosero.one>
|
||||||
#Generated by : Claude Code (claude-3-7-sonnet-20250219)
|
#Generated by : Claude Code (claude-3-7-sonnet-20250219)
|
||||||
#Created : 2025/03/21 16:06:20
|
#Created : 2025/03/21 16:06:20
|
||||||
#Modified : 2025/03/21 17:11:27
|
#Modified : 2025/03/21 17:14:59
|
||||||
#Version : 1.0.0
|
#Version : 1.0.0
|
||||||
#Use Notes :
|
#Use Notes :
|
||||||
# Gestiona múltiples tokens de IA definidos en ai.tokens
|
# Gestiona múltiples tokens de IA definidos en ai.tokens
|
||||||
|
@ -147,14 +147,11 @@ show_provider_menu() {
|
||||||
menu_text+="${i} ${provider_codes[i]}"
|
menu_text+="${i} ${provider_codes[i]}"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Añadir opción para salir
|
|
||||||
options+="\n999:${aimsg_113}"
|
|
||||||
|
|
||||||
# Mostrar menú usando console.lib
|
# Mostrar menú usando console.lib
|
||||||
choice=$(menu_actions "${aimsg_101}" "$options" 12)
|
choice=$(menu_actions "${aimsg_101}" "$options" 12)
|
||||||
|
|
||||||
# Verificar salida
|
# Verificar salida
|
||||||
if [ "$choice" == "${head_key_end}" ] || [ "$choice" == "999" ]; then
|
if [ "$choice" == "${head_key_end}" ]; then
|
||||||
clear
|
clear
|
||||||
echo "${aimsg_108}"
|
echo "${aimsg_108}"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue