Skip to content

Commit 1b66392

Browse files
committed
Initial pass at writing documentation
1 parent 22c851a commit 1b66392

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

src/lib.rs

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,62 @@
11
#![cfg_attr(feature = "fail-on-warnings", deny(warnings))]
2+
//#![deny(missing_docs)]
3+
//#![deny(missing_debug_implementations)]
24
#![forbid(unsafe_code)]
5+
#![doc(html_root_url = "https://docs.rs/git-anger-management/0.4.0")]
6+
7+
//! # git-anger-management
8+
//!
9+
//! ## What
10+
//!
11+
//! Have you ever wondered how much you or your co-workers actually curse in your
12+
//! commit messages? Worry no more, `git-anger-management` is here to help you.
13+
//! Simply run it against your repository and it'll tell you who is the naughtiest
14+
//! of them all.
15+
//!
16+
//! ## Why
17+
//!
18+
//! Some times the only way to vent at the ridiculous crap we make is to write
19+
//! really angry commit messages, I do it all the time. And I wanted to know just
20+
//! how angry I get.
21+
//!
22+
//! # Installation
23+
//!
24+
//! Make sure you have Rust installed (I recommend installing via
25+
//! [rustup](https://rustup.rs/)), then run `cargo install git-anger-management`.
26+
//! You can now check how naughty you are by running `git anger-management` in the
27+
//! directory where you want to check naughtiness.
28+
//!
29+
//! Output should look something like this:
30+
//!
31+
//! ```sh
32+
//! $ git anger-management
33+
//! repo: (32/512) naughty commits/commits
34+
//! Sondre Nilsen: (32/438) naughty commits/commits
35+
//! {
36+
//! "goddamn": 1,
37+
//! "fuck": 12,
38+
//! "fucking": 13,
39+
//! "shit": 5,
40+
//! "tits": 1
41+
//! }
42+
//! ```
43+
//!
44+
//! You can also point it to other directories if you want to look somwhere else
45+
//! but you're too lazy to actually `cd` into that directory:
46+
//!
47+
//! ```sh
48+
//! $ git anger-management ../../other-repo/
49+
//! other-repo: (3/56) naughty commits/commits
50+
//! Sondre Nilsen: (3/56) naughty commits/commits
51+
//! {
52+
//! "goddamn": 1,
53+
//! "fucking": 1,
54+
//! "fuck": 1
55+
//! }
56+
//! ```
57+
//!
58+
//! Or look at the help by running `git anger-management -h`.
59+
360
#[macro_use]
461
extern crate lazy_static;
562
extern crate hashbrown;

0 commit comments

Comments
 (0)