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.
Properties
Section titled “Properties”semver
Section titled “semver”var semver: String = ""The semantic version set with the --semver flag of archmage.
workspace
Section titled “workspace”var workspace: String = ""The workspace name.
var tags: Array[String] = []The tags of the commit.
branch
Section titled “branch”var branch: String = ""The branch name.
var id: String = ""The full commit ID.
short_id
Section titled “short_id”var short_id: String = ""The abbreviated commit ID.
timestamp
Section titled “timestamp”var timestamp: Archmage.DateTimeThe 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.
message
Section titled “message”var message: String = ""The commit message.
author
Section titled “author”var author: String = ""The commit author.
status
Section titled “status”var status: Array[String] = []The entries of the working tree status.
var extra: Dictionary = {}Additional metadata.
Methods
Section titled “Methods”from_json()
Section titled “from_json()”static func from_json(d: Variant, e: Archmage.ParseError = null) -> Archmage.VersionInfoReturns 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.
to_json()
Section titled “to_json()”func to_json() -> DictionaryReturns the version info as a JSON object with the keys of atlas.json.