mirror of
https://github.com/onyx-and-iris/ignr.git
synced 2025-07-27 06:11:48 +00:00
change default height to 10
- with startswith filtering its more reasonable
This commit is contained in:
parent
f51302a945
commit
e1b879f54c
@ -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
|
||||
```
|
||||
|
||||
|
2
main.go
2
main.go
@ -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')")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user