Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmbfm/gi
Simple program that generates .gitignore files based on the templates from https://github.com/toptal/gitignore.
https://github.com/dmbfm/gi
Last synced: 3 months ago
JSON representation
Simple program that generates .gitignore files based on the templates from https://github.com/toptal/gitignore.
- Host: GitHub
- URL: https://github.com/dmbfm/gi
- Owner: dmbfm
- License: mit
- Created: 2021-11-25T00:56:06.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-25T11:36:39.000Z (about 3 years ago)
- Last Synced: 2024-08-04T04:04:59.105Z (6 months ago)
- Language: Zig
- Size: 8.79 KB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zig - gi๐๏ธSimple program that generates .gitignore files based on the templates from https://github.com/toptal/gitignore
README
# gi
Small program that generates .gitignore files. The templates are taken from
[toptal/gitignore](https://github.com/toptal/gitignore). They are all bundled
in the compiled binary, so there is no need to keep a folder with the templates, making it easier to install.## Building and installation
Make sure you have the [zig](https://ziglang.org) compiler [installed](https://ziglang.org/download/) on your machine. Then:
```
git clone --recurse-submodules https://github.com/dmbfm/gi.git
cd gi
zig build -Drelease-safe --prefix ~/.local
```to install `gi` to `~/.local/bin` (or replace this with any other location on your PATH).
## Usage
```
Usage: gi [...]
```Just call `gi` followed by one ore more template names.
```
$ gi zig > .gitignore
$ cat .gitignore
# Zig programming languagezig-cache/
zig-out/
build/
build-*/
docgen_tmp/
```To list all the avilable templates, call `gi --list` or `gi -l`.