gi
is a cli wrapper for gitignore.io api to generate .gitignore files on the fly, you only need to supply the desired tags (languages, framework, platform, etc) and (optionaly) the output directory (defaults to cwd).
You can install this package with npm i -g @dellamina/gitignore-cli
and then you can run gi
from everywhere on your pc.
If you are not happy you can uninstall with npm rm -g @dellamina/gitignore-cli
, an issue would be also cool to know why gi
was not for you :)
gi
has two main commands, run
is also the default command if no argument is passed:
run
(default) that leverages inquirer.js to get the needed parametersfor
that acceps a variable number of arguments to be used as tags and a switch(-o, --output
) for the destination folder
Usage: gi [options] [command]
Options:
-v, --version output the version number
-h, --help output usage information
Commands:
run Generate .gitignore interactively
for [options] <tags...> Generate .gitignore from the passed arguments
Options:
-o, --output <directory> output directory
-h, --help output usage information
help Show help message