Help us shape the future of Go! Take the 2026 Go Developer Survey

SemanticBumper

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 5 Imported by: 0

README

SemanticBumper - A version bumper

SemanticBumper is a version bumping CLI program built using Go. The idea for this project was taken from an OSI issue.

A version bumping program built with Go.

Install

To install SemanticBumper, you must have installed Go. You can install SemanticBumper with the following command:

go get github.com/TheOtterlord/SemanticBumper
Update

You can update SemanticBumper by calling this command.

go get -u github.com/TheOtterlord/SemanticBumper

Keep track of new releases by watching this repository. All releases are tracked in the changelog.

Usage

To bump files to a new version, you must create a .bumped file that follows the schema provided. Open the command line and navigate to the directory of your project and associated .bumped file. Run SemanticBumper myfile.bumped using your .bumped file in place of myfile.bumped.

Example:

SemanticBumper myfile.bumped
Init

Calling SemanticBumper init will create a version.bumped file in the current directory.

Help

You can get information about the CLI by calling SemanticBumper help. It will display information about the options and how to use them.

Bumped Schema

The .bumped files follow a simple schema.

At the top, the version field specifies what the new version is.

version: 0.1.1

After that, a bumps field can be used to specify all files to be bumped.

bumps:

These files are written on a new line with a - prefix. The files must be relative to the .bumped files directory.

bumps:
 - README.md

Example:

version: 1.2.3
bumps:
 - README.md
 - main.example
 - lib.example

If you are maintaining an application and library within the smae project and they don't share the same version number, that's ok. SemanticBumper supports multiple version bumping groups.

Example:

version: 1.1.0
bumps: 
 - README.md
 - main.example

version: 1.0.1
 - lib.example

TIP: You can also add comments using a // prefix.

// bump file for my-project

// bump my app
version: 1.1.0
bumps: 
 - README.md
 - main.example

// bump my library
version: 1.0.1
 - lib.example

License

MIT

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