version
Translation status: English reader-locale proof. Term names and code fences follow the en pack; supporting prose may still be English.
Attaches a version string to a CLI root.
Syntax: @ version <string>
Category#
cli
Related#
Examples#
radix/corpus/meta/versio.fab (canonical · annotation)#
Attaches a version string to a CLI root.
# =============================================================================
# version — Attaches a version string to a CLI root.
# =============================================================================
#
# What this teaches:
# • the `@version` annotation — attaches a semantic version string to a CLI application
# • combining with `@cli` and `@description` for complete CLI metadata
#
# Common mistakes:
# • Applying @ version without @ cli — @ version only has meaning when attached to a CLI main.
#
# See also: cli, description
# =============================================================================
# meta/versio — CLI version annotation
#
# GRAMMAR:
# annotation :← '@' 'version' stringLit
#
# EXPECTED OUTPUT:
# none — the runner executes the entry and prints nothing; empty golden.
#
# BACKEND:
# declaration-only CLI metadata (whitelist: meta/versio.fab).
@ cli "versio-smoke"
@ version "0.1.0"
@ description "Version metadata exemplum"
main args args {
}