Crates.io | gitbox |
lib.rs | gitbox |
version | 2.1.0 |
source | src |
created_at | 2023-10-29 10:56:05.418819 |
updated_at | 2024-09-09 19:34:38.088472 |
description | Git toolbox to simplify adoption of conventional commits and semantic version, among other things. |
homepage | |
repository | https://github.com/asperan/gitbox |
max_upload_size | |
id | 1017456 |
size | 413,999 |
Gitbox is the spiritual successor and rewrite of get.
It leverages the git CLI tool to enable fast and simple semantic versioning and conventional commits.
Unless new features are requested, this project is considered completed. This means that there won't be more development time other than the one needed to fix bugs and implement new, approved features.
To ask for a feature, create a new issue. If the requested feature is considered pertinent to the project, it may be implemented in a future version. If you want to implement the feature yourself, please first create a new issue to ask for its approval, then you can create a Pull Request.
refresh
subcommand from commit
subcommand into a standalone subcommand.docker
subcommand from describe
subcommand.If you want to install the distributed binary, run cargo install gitbox
.
If you want to install from source, clone the repository and install it by providing the path to cargo:
git clone <origin-URL> gitbox
cd gitbox
cargo install --path .
Cargo installation instructions
Gitbox contains multiple subcommands which execute different tasks.
The help message gb help
(or gb --help
):
Gitbox (gb) is wrapper for git and it enhance some functionalities.
Usage: gb <COMMAND>
Commands:
changelog Generate a changelog
commit Create a commit with a conventional message
complete Print a completion script
describe Calculate the next version
init Initialize a git repository
license Create a license file
tree Print a fancy view of the commit tree
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
This subcommand will print help messages for the other subcommand specified:
gb help <subcommand>
It is equivalent to gb <subcommand> --help
or gb <subcommand> -h
.
This subcommand generates a list of changes from the last release (or the last version, if a flag is enabled).
The list can be formatted using options (see gb changelog --help
).
For example, the command to format the changelog in Markdown is gb changelog --title-format "# %s" --type-format "## %s" --scope-format "### %s" --list-format "%s" --item-format "* %s" --breaking-format "**%s**"
.
gb commit
allows to easily create a commit which follows the conventional commit standard.
If no option is specified, it will proceed by asking the user the commit type, its scope, whether it is a breaking change, the summary and the body of the commit. With options, these questions can be skipped (by providing a value).
For a simple commit (not breaking and without body), the command suggested is gb commit --no-breaking -m ''
.
For the complete list of options, run gb help commit
(or gb commit --help
).
This subcommand prints a completion script for Gitbox. Follow the instruction of your shell (if supported) to install it.
gb describe
calculates the new semantic version from the list of commits since the last release.
You can configure the triggers for a specific change (i.e. an update to a core dependency, if properly configured with type and scope, can trigger a patch update).
For all configuration options, see gb help describe
.
This simple subcommand initialize a git repository with an empty commit, to allow the early usage of the other subcommands.
The license
subcommand retrieve the list of open source licenses from https://choosealicense.com/ and allow the user to download the chosen license text.
This subcommand refreshes the content of the .git/extra
folder, which contains all the files used by GitBox to work.
This command shall be run after cloning a remote repository or pulling remote commits, as they may introduce new data for GitBox.
As this can be a heavy operation, it has a standalone subcommand.
gb tree
pretty prints the output of git log
. To navigate it you can pipe its output to a pager: gb tree | less
.
This software is distributed according to the MIT license.