Skip to content

Archmage.VersionInfo

The version metadata of the config repository, from the version object of atlas.json.

Inherits: RefCounted

A field that the object does not have is empty.

var semver: String = ""

The semantic version set with the --semver flag of archmage.

var workspace: String = ""

The workspace name.

var tags: Array[String] = []

The tags of the commit.

var branch: String = ""

The branch name.

var id: String = ""

The full commit ID.

var short_id: String = ""

The abbreviated commit ID.

var timestamp: Archmage.DateTime

The commit time, the zero value when the object has none. In atlas.json, it is an RFC 3339 string, such as 2025-02-09T10:23:45Z.

var message: String = ""

The commit message.

var author: String = ""

The commit author.

var status: Array[String] = []

The entries of the working tree status.

var extra: Dictionary = {}

Additional metadata.

static func from_json(d: Variant, e: Archmage.ParseError = null) -> Archmage.VersionInfo

Returns the version info in d, a parsed JSON object, or null when d is not a Dictionary. When the timestamp is not an RFC 3339 string, records the error in e (see Archmage.ParseError.report()) and keeps the zero value.

func to_json() -> Dictionary

Returns the version info as a JSON object with the keys of atlas.json.