Skip to content

Latest commit

 

History

History
87 lines (62 loc) · 2.63 KB

File metadata and controls

87 lines (62 loc) · 2.63 KB

Semantic Version Manager

Swift Swift 6.1 pipeline status Latest Release

Description

Semantic Version Manager is written in swift allows you to manage the version of your package using a json file.

Installation

There are several ways to install semantic version manager

From Source

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/bin

Using 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 tag

Using Homebrew

brew tap thecb4-universe/swift-version-management https://gitlab.com/thecb4-universe/public/semantic-version-manager.git
brew install semantic-version-manager

Usage

From the command line

semantic-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.

As a package plugin

dependencies: [.package(url: "https://gitlab.com/thecb4-universe/public/semantic-version-manager.git", from: "0.1.0")]
swift package plugin semantic-version-manager show full

As a library

dependencies: [.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 SemanticVersionKit

Documentation

Please check out the SemanticKit Documentation