Add interactive menu regression

This commit is contained in:
2026-04-17 11:09:25 +08:00
parent b5ae4a5668
commit 7b854c7a96
8 changed files with 114 additions and 18 deletions

View File

@@ -96,7 +96,8 @@ main_menu_loop() {
local choice
while true; do
render_main_menu
choice=$(prompt_input '请选择 [0-5]' '')
prompt_input_capture '请选择 [0-5]' ''
choice=${PROMPT_INPUT_RESULT}
case ${choice} in
1) cmd_list ;;
2) cmd_add ;;