Semantic Version Manager is written in swift allows you to manage the version of your package using a json file.
There are several ways to install semantic version manager
git clone https://gitlab.com/thecb4-universe/public/semantic-version-manager.git
cd semantic-version-manager
task build:release
cp dist/semantic-version-manager /usr/local/binUsing Mint
mint install gitlab.com/thecb4-universe/public/semantic-version-manager # installs latest tag
mint install gitlab.com/thecb4-universe/public/semantic-version-manager@0.1.0 # installs specific tagUsing Homebrew
brew tap thecb4-universe/swift-version-management https://gitlab.com/thecb4-universe/public/semantic-version-manager.git
brew install semantic-version-managersemantic-version-manager --help
OVERVIEW: A swift semantic version manager tool.
USAGE: semantic-version-manager <subcommand>
OPTIONS:
--version Show the version.
-h, --help Show help information.
SUBCOMMANDS:
show Display version identifiers
bump Bump major, minor, or path version identifier
generate-swift-version Generates a Version.swift that represents the version.json file
set-pre-release . separated list of pre-release identifiers
set-build . separated list of build identifiers
See 'semantic-version-manager help <subcommand>' for detailed help.dependencies: [.package(url: "https://gitlab.com/thecb4-universe/public/semantic-version-manager.git", from: "0.1.0")]swift package plugin semantic-version-manager show fulldependencies: [.package(url: "https://gitlab.com/thecb4-universe/public/semantic-version-manager.git", from: "0.1.0")]
// inside the target
dependencies: [ .product(name: "SemanticVersionKit", package: "semantic-version-manager") ]// inside the file
import SemanticVersionKitPlease check out the SemanticKit Documentation