google/zx
version of chorefeatfix
, CLI app that will help you to create semantic commit messages
Practically, they both are identical, but zx
version is much better. You may use any version.
Original version is lagging with -a
/--add
option, because of two commands being executed.
zx
version doesn't have this issue.
If you have installed original version, please delete it. It will conflict because of cff
and chorefeatfix
commands.
$ npm i https://github.com/redcarti/chorefeatfix-zx -g
$ yarn global add https://github.com/redcarti/chorefeatfix-zx
Usage: cff [options] <command>
Commands:
cff feat [message] new feature for the user, not a new feature for build
script
cff fix [message] bug fix for the user, not a fix to a build script
cff docs [message] changes to the documentation
cff style [message] formatting, missing semi colons, etc; no production co
de change
cff refactor [message] refactoring production code, eg. renaming a variable
cff test [message] adding missing tests, refactoring tests; no production
code change
cff chore [message] updating grunt tasks etc; no production code change
cff ci [message] changes to the ci
Options:
--version Show version number [boolean]
-h, --help Show help [boolean]
-s, --scope Set scope of a commit [string]
-a, --add Perform `git add` command [boolean]
-c, --closes, --close Close an issue [number]
by redcarti
You must use quotes in your message, if you are going to write more than one word.
One word:
$ cff chore test
More than one word:
$ cff chore 'test. simple test. dont use test. something...'
You can use -s
option to provide scope of your fix, chore, feat, etc.
$ cff -s deps fix 'updated discord.js to last version'
If you provide -a
option, chorefeatfix will execute git add .
command, so you don't need to type it yourself!
$ cff -a fix 'fixed dependabot'
Works as
$ git add .
$ cff fix 'fixed dependabot'