module

Carbon

Constants

COMMIT_VERSION = 9
MAJOR_VERSION = 0
MINOR_VERSION = 1
VERSION = "0.1.9"

Class methods

bump!(type : BumpType = BumpType::Commit, repo_root : Path | String = ".", stage : Bool = false) : Version

Bumps the version and updates all target files

Source
carbon_version
Source
check(repo_root : Path | String = ".") : NamedTuple(synced: Bool, shard_version: Version | Nil, git_commits: Int32, diff: Int32)

Checks if shard.yml commit number matches current Git commit count

Source
current(repo_root : Path | String = ".") : Version

Returns the current version parsed from shard.yml, or derived from Git

Source
set(major : Int32, minor : Int32, repo_root : Path | String = ".", stage : Bool = false) : Version

Sets major and minor version numbers explicitly across all targets

Source
sync!(repo_root : Path | String = ".", stage : Bool = false) : Version

Synchronizes all target files with the exact current Git commit count

Source
version
Source

Macros

version!(path = "shard.yml")

Declarative compile-time macro to define VERSION constants inside any module or class

Source

Nested types