works gooder now
This commit is contained in:
10
README.md
10
README.md
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user