bump

command module
v0.0.0-...-e9994b1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 6 Imported by: 0

README

bump

Reads a semantic version (format MAJOR.MINOR.PATCH) from a file, increments the specified segment, and writes the result back.

Usage

bump [-s <segment>] <file>

Flags

-s, --segment  Segment to bump: major, minor, or patch (default: patch)
-h, --help     Display help

Example

# Bump patch version (1.2.3 -> 1.2.4)
bump version.txt

# Bump minor version (1.2.3 -> 1.3.0)
bump -s minor version.txt

# Bump major version (1.2.3 -> 2.0.0)
bump -s major version.txt

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL