mirror of
https://github.com/onyx-and-iris/gogn.git
synced 2026-04-16 14:23:35 +00:00
initial commit
This commit is contained in:
56
README.md
Normal file
56
README.md
Normal file
@@ -0,0 +1,56 @@
|
||||

|
||||

|
||||

|
||||
|
||||
# gogn
|
||||
|
||||
Simple no-frills .gitignore generator backed by [gitignore.io][gitignoreio].
|
||||
|
||||

|
||||
|
||||
## Install
|
||||
|
||||
```console
|
||||
go install github.com/onyx-and-iris/gogn@latest
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
*flags*
|
||||
|
||||
- --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)
|
||||
- --start-search/-s: Start the prompt in search mode (default false)
|
||||
|
||||
*environment variables*
|
||||
|
||||
```bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
export GOGN_HEIGHT=10
|
||||
export GOGN_FILTER=startswith
|
||||
export GOGN_START_SEARCH=false
|
||||
```
|
||||
|
||||
## Commands
|
||||
|
||||
### New
|
||||
|
||||
Trigger the selection prompt.
|
||||
|
||||
```console
|
||||
gogn new
|
||||
```
|
||||
|
||||
Search mode can be activated by pressing `/`:
|
||||
|
||||

|
||||
|
||||
## Special Thanks
|
||||
|
||||
- [spf13](https://github.com/spf13) for the [cobra](https://github.com/spf13/cobra) and [viper](https://github.com/spf13/viper) packages.
|
||||
- [Manifold](https://github.com/manifoldco) for the [promptui](https://github.com/manifoldco/promptui) package.
|
||||
|
||||
|
||||
[gitignoreio]: https://www.toptal.com/developers/gitignore
|
||||
Reference in New Issue
Block a user