Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/somucheffort/chorefeatfix-zx
google/zx version of chorefeatfix
https://github.com/somucheffort/chorefeatfix-zx
cli cli-app commit-message git git-cli javascript js node node-cli node-js nodejs semantic-git-commit semantic-git-commit-cli zx
Last synced: about 2 months ago
JSON representation
google/zx version of chorefeatfix
- Host: GitHub
- URL: https://github.com/somucheffort/chorefeatfix-zx
- Owner: somucheffort
- License: mit
- Created: 2021-05-16T08:05:39.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-07T17:17:19.000Z (over 2 years ago)
- Last Synced: 2024-10-13T04:40:13.507Z (3 months ago)
- Topics: cli, cli-app, commit-message, git, git-cli, javascript, js, node, node-cli, node-js, nodejs, semantic-git-commit, semantic-git-commit-cli, zx
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chorefeatfix-zx
[`google/zx`](https://github.com/google/zx) version of [`chorefeatfix`](https://github.com/redcarti/chorefeatfix), CLI app that will help you to create semantic commit messages## What to choose? `zx` or original version?
Practically, they both are identical, but `zx` version is much better. You may use any version.### Lag
Original version is lagging with `-a`/`--add` option, because of two commands being executed.`zx` version doesn't have this issue.
# Installing
If you have installed original version, please delete it. It will conflict because of `cff` and `chorefeatfix` commands.
## `npm`
```console
$ npm i https://github.com/redcarti/chorefeatfix-zx -g
```## `yarn`
```console
$ yarn global add https://github.com/redcarti/chorefeatfix-zx
```# Usage
```console
Usage: cff [options]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 ciOptions:
--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
```## Commit message
You must use quotes in your message, if you are going to write more than one word.
### Example
One word:
```console
$ cff chore test
```More than one word:
```console
$ cff chore 'test. simple test. dont use test. something...'
```## `-s` or `--scope` option
You can use `-s` option to provide scope of your fix, chore, feat, etc.
### Example
```console
$ cff -s deps fix 'updated discord.js to last version'
```## `-a` or `--add` option
If you provide `-a` option, chorefeatfix will execute `git add .` command, so you don't need to type it yourself!
### Example
```console
$ cff -a fix 'fixed dependabot'
```Works as
```console
$ git add .
$ cff fix 'fixed dependabot'
```