Skip to content

Generate .gitgnore files from command line with zignr

Notifications You must be signed in to change notification settings

brasilisclub/zignr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zignr

This is a CLI tool to generate .gitgnore files written in zig.

Installation

For now, you can install from our pre-built binary (Linux only):

curl -sSL https://raw.githubusercontent.com/brasilisclub/zignr/main/install.sh | bash -

To make zignr available globally you should have ~/.local/bin on you PATH

Usage

To create a .gitgnore file you can simply use zignr <language> > .gitnore. This command will overwrite your .gitignore file. Example:

zignr zig > .gitgnore

Multi language example:

zignr zig,python,lua > .gitgnore

To see the list of all .gitignore templates you can call zignr with, just use:

zignr list

References

This project started as a Zig learning experience (and still is), so I will link my references below: First of all, zignr is heavily inspired by ignr.py, which uses the gitignore.io API.

Zig references I used:

About

Generate .gitgnore files from command line with zignr

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published