Git Hooks and Changelog Generator based on Conventional Changelog
... Standardize git commits to run tools against later ...
... A single file that can be added to your project that will install git hooks to standardize git commits and generate change logs automagically ...
To install cgtools simply drop the bin into your project directory and run ./cgtools install -v
.
> chmod +x cgtools # Make cgtools executable
> ./cgtools install -v # Install cgtools
Checking dependencies...
OK
Generating Git Hooks...
OK
cgtools can generate tab completion for bash and zsh with the flag -b
or --bash-completion
.
You can test it out by sourcing the file: source cgtools-completion.sh
.
> ./cgtools install -b -v # Install cgtools with bash completion
Checking dependencies...
OK
Generating Git Hooks...
OK
Generating Bash Completion...
OK
$ source cgtools-completion.sh
$ ./cgtools <tab>
--help --verbose --version -h -v install logs validate
Note: If you use zsh
you might need to add the following to your .zshrc
:
autoload bashcompinit
bashcompinit
To build from source you will need to install Haskell
$ git clone https://github.com/shanewilson/cgtools.git
$ cd cgtools
$ cabal sandbox init
$ cabal install --enable-tests --enable-benchmarks --force-reinstalls
$ .cabal-sandbox/bin/cgtools --help
Talk about this next time
TODO