change default height to 10

- with startswith filtering its more reasonable
This commit is contained in:
onyx-and-iris 2025-06-18 06:37:06 +01:00
parent f51302a945
commit e1b879f54c
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ go install github.com/onyx-and-iris/ignr@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)
- --height/-H: Height of the selection prompt (default 10)
- --filter/-f: Type of filter to apply to the list of templates (default startswith)
- may be one of (startswith, contains)
@ -30,7 +30,7 @@ go install github.com/onyx-and-iris/ignr@latest
#!/usr/bin/env bash
export IGNR_TOKEN=<API Token>
export IGNR_HEIGHT=20
export IGNR_HEIGHT=10
export IGNR_FILTER=startswith
```

View File

@ -54,7 +54,7 @@ You may also list available templates and generate .gitignore files based on tho
// init initialises the root command and its flags.
func init() {
rootCmd.PersistentFlags().StringP("token", "t", "", "GitHub authentication token")
rootCmd.PersistentFlags().IntP("height", "H", 20, "Height of the selection prompt")
rootCmd.PersistentFlags().IntP("height", "H", 10, "Height of the selection prompt")
rootCmd.PersistentFlags().
StringP("filter", "f", "startswith", "Type of filter to apply to the list of templates (e.g., 'startswith', 'contains')")