works gooder now

This commit is contained in:
2026-02-02 22:20:54 -07:00
parent 07435e9f9b
commit 0eef816117
3 changed files with 34 additions and 13 deletions

View File

@@ -1,7 +1,13 @@
# Select Option
Creates a tui selector based off of input args.
`select_option a b c` will create a selector for a, b, c.
Creates a tui selector based off of `stdin`.
`printf '1\n2\n3' | select_option` will create a selector for a, b, c.
Navigate with F-keys, j/k, or arrow keys, then press enter on your selection.
This will print out the selected option to stdout.
## Usecases
Selecting a drive from the system
```bash
lsblk -lno type,name | grep part | awk '{ print "/dev/" $2 }' | select_option
```