@berries/acai-cli
<img
src="https://raw.githubusercontent.com/MartinHelmut/berries/master/packages/acai-cli/logo.svg?sanitize=true"
width="350"
height="255"
alt="Berries acai cli logo with three berries and two leafs shown."
/>
!npmnpmimgnpmurl !Build Statusbsurlbsimg !Coverage Statuscsimgcsurl !lernalnimglnurl !Commitizen friendlycfimgcfurl !code style: prettierptimgpturl
Calculate bug spots in git repositories based on commit messages.
This is the command line tool that uses the @berries/acaiacurl library to calculate a list of files that where bug prone in the recent past by applying a score value to the files. The older a commit for a file gets, the less priority it has. This prevents files that where fixed a long time ago to be forever on top of the list.
Important note: The results for the hot spots are only relevant for the project itself and can not be compared from one project to another (except you find a way to do it! 😉).
<img
src="https://cdn.rawgit.com/MartinHelmut/berries/24b7e579/packages/acai-cli/usage-example.svg"
width="620"
height="378"
alt="Animated usage example of the acai cli."
/>
Table of contents
- [Options](#options)
Environment
- Node >= 8
- NPM >= 5
Usage
You can install the CLI with:$ npm i @berries/acai-cli -g
and run the acai-cli inside a git repository (other version control systems will be follow):
$ acai
or use npx and run acai directly:
$ npx @berries/acai-cli
Options
| Option | Short | Description | | --------- | ----- | ----------------------------------------------------------------------------------------------------------------- | | --help | -h | Show the help text for acai command line tool | | --version | | Show the installed CLI version | | --cwd | -d | Define a different git repository, e.g.:$ acai -d "path/to/git/repo"
|
| --format | -F | Define the output format. Available options: human
|
| --branch | -b | Branch to run stats on, default branch is the currently selected |
| --depth | -D | Define how many commits in the past should be considered |
| --files | -f | One or more file patterns to match against. You can use http://www.globtester.comglurl to test your patterns. |