replace huh with promptui

- it gives more control over filtering

add --filter/-f flag, this allows configuration over a prefix vs contains filter

update the README to reflect changes
This commit is contained in:
2025-06-18 03:31:34 +01:00
parent 39f762c0e6
commit 70b1c373ae
9 changed files with 254 additions and 117 deletions

View File

@@ -21,6 +21,8 @@ go install github.com/onyx-and-iris/ignr-cli@latest
- --token/-t: GitHub authentication token
- note, this tool can be used **without** authenticating but rate limiting will be stricter.
- --height/-H: Height of the selection prompt (default 20)
- --filter/-f: Type of filter to apply to the list of templates (default startswith)
- may be one of (startswith, contains)
*environment variables*
@@ -29,6 +31,7 @@ go install github.com/onyx-and-iris/ignr-cli@latest
export IGNR_TOKEN=<API Token>
export IGNR_HEIGHT=20
export IGNR_FILTER=startswith
```
## Commands