whatthecommitcli 0.1.0

A tool to search files
whatthecommitcli-0.1.0 is not a library.

What The Commit CLI

whatthecommit.com but local.

Installation

cargo install whatthecommitcli

Usage

Default

Generate a random commit message using built-in defaults:

whatthecommitcli

Use it directly with git:

git commit -m "$(whatthecommitcli)"

Customization Options

Usage: whatthecommitcli [OPTIONS]

Options:
  -n, --names <FILE>                     Optional path to a custom names file
  -c, --commit-messages-template <FILE>  Optional path to a custom commit messages template file
  -h, --help                             Print help
  -V, --version                          Print version

Template Placeholders

The commit message templates support three placeholders for name substitution:

  • XNAMEX - Replaces with the name as-is (e.g., "John")
  • XLOWERNAMEX - Replaces with lowercase version (e.g., "john")
  • XUPPERNAMEX - Replaces with uppercase version (e.g., "JOHN")

License

Dual-licensed under Apache 2.0 or MIT.

The default commit messages and names are sourced from https://github.com/ngerakines/commitment.