Crates.io | story-line-counter |
lib.rs | story-line-counter |
version | 1.0.0 |
source | src |
created_at | 2019-08-03 01:59:19.859914 |
updated_at | 2019-08-03 01:59:19.859914 |
description | This utility analyzes a git repo's commit messages for Version1 or Jira story numbers and gets the total number of changed lines associated with a story. |
homepage | https://darunada.github.io/story-line-counter |
repository | https://github.com/darunada/story-line-counter.git |
max_upload_size | |
id | 153900 |
size | 28,946 |
This utility analyzes a git repo's commit messages for Version1 or Jira story numbers and gets the total number of changed lines associated with a story.
This utility is built in Rust. Is this your first time? It is mine @_@
rustup
~/.cargo/bin
added to your PATH variablecargo run --
, or cargo run -- --help
$ cargo build --release
... builds in a few minutes ...
$ ./target/release/story-line-counter
$ ./target/release/story-line-counter --help
$ ./target/release/story-line-counter run --help
At this point it's ready to use, but only the run operation is implemented. Include the executable in your PATH and you can use it
from within any git repository simply by running story-line-counter
.
$ story-line-counter --help
story-line-counter 1.0.0
Lea Fairbanks <lea.rae.fairbanks@gmail.com>
USAGE:
story-line-counter [SUBCOMMAND]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
SUBCOMMANDS:
collect Parses a git repo and outputs DiffCollection objects.
help Prints this message or the help of the given subcommand(s)
run Opens a repo and outputs a DiffTotalCollection.
total Loads a DiffCollection file and outputs a DiffTotalCollection.
You may collect and total a repository in one step.
$ story-line-counter run -p /path/to/points.json /path/to/repo
Or you may split it into two steps, to total multiple repos together.
$ story-line-counter collect /path/to/repo1 > repo1.json
$ story-line-counter collect /path/to/repo2 > repo2.json
$ story-line-counter total -p /path/to/points.json repo1.json repo2.json
Including a points file is optional, but you must generate your own to match story numbers with point values. An example points.json file is included in this repo here. It may be pretty-printed or not.