~修复管理配置文件功能的若干bug

~优化管理配置文件功能列表显示
~add content_list() for tui
This commit is contained in:
juewuy
2026-01-25 16:05:37 +08:00
parent dc694f30c0
commit 7f403992b6
5 changed files with 154 additions and 103 deletions

View File

@@ -146,3 +146,12 @@ separator_line() {
line_break() {
printf "\n\n"
}
content_list() {
i=1
printf '%s\n' "$1" | while IFS= read -r f; do
content_line "$i) $f$2"
i=$(( i + 1 ))
done
}