[FEATURE REQUEST] dynamic tui dialog options
nyxnor opened this issue · 2 comments
nyxnor commented
Is your feature request related to a problem? Please describe.
it shjould only show options for plugins that are installed.
I know how to do it with bash arrays, but how to do it with posix?
Describe the solution you'd like
Describe alternatives you've considered
Additional context
nyxnor commented
https://mac-blog.org.ua/bash-backup-restore-script
Yes, the name is bash backup script but the script is posix.
Example given:
#!/bin/sh
# Disaplay choose dialog with available backups
CHOSEN_DATE=$(whiptail --title "RESTORE BACKUP" --menu "Chose Backup Date" 20 78 10 `for x in /home/example/backups/*.tar.gz; do echo "$x backup" | sed 's/.*www-\(.*\).tar.gz/\1/'; done` 3>&1 1>&2 2>&3)
nyxnor commented
the dynamic part related to plugins being available has a appearance issue, it needs to be a single string.