verto

Crates.ioverto
lib.rsverto
version0.7.13
sourcesrc
created_at2021-09-24 03:55:47.673663
updated_at2024-07-26 21:31:39.442934
descriptionSimple, opinionated project versioning
homepage
repositoryhttps://git.sr.ht/~brownjohnf/verto
max_upload_size
id455741
size144,251
Jack Brown (brownjohnf)

documentation

README

Verto

Automatically version a repository using Semantic Versioning, without worrying about manually incrementing versions in files or git.

This project was inspired by Balena's versionist project, but verto aims to be simpler to use, and have zero configuration.

Getting Started

  • Install verto, either by cloning this repo and compiling it using cargo build --release, or by downloading a pre-compiled binary (coming soon)
  • In an existing repository, run verto. Git is required for its proper functioning, because it uses commit messages to calculate version increments.
  • The following project types will have their versions incremented:
    • npm
    • rust
    • any repo containing a version.txt file

Troubleshooting / Common Problems

Version Disagreement

verto requires that all plugins (project types) specify the same version. If you have a version.txt at version 1.0.0 and a git tag set to 0.1.0, verto will error and exit. To fix this, make sure all detected/enabled plugins are reporting the same version.

Usage

USAGE:
    verto [FLAGS] [OPTIONS]

FLAGS:
    -n, --dry-run
    -h, --help           Prints help information
        --plugin-list    List available plugins compiled into this binary
    -V, --version        Prints version information

OPTIONS:
        --branch <branch>                     Only version this branch. If you run this on a branch other than the
                                              specified branch, verto will complain and exit non-zero
    -p, --path <path>
        --plugin-add <plugin-add>...          Plugins to force the use of, regardless of whether their identifier
                                              methods detect a match for your repository
        --plugin-remove <plugin-remove>...    Plugins to not use, even though they match your repository
        --prefix <prefix>
Commit count: 0

cargo fmt