Renderingen-US

Experimental through version 1. Version 0 was alpha. This is the first language release: the interface is relatively stable, not frozen. Nothing is promised stable until version 2.

description

Translation status: English reader-locale proof. Term names and code fences follow the en pack; supporting prose may still be English.

Attaches a description string to CLI metadata.

Syntax: @ description <string>

Category#

cli

Examples#

radix/corpus/reference/keyword/descriptio/descriptio.fab (canonical · keyword)#

Attaches a description string to CLI metadata.

# =============================================================================
# description — Attaches a description string to CLI metadata.
# =============================================================================
#
# What this teaches:
#   • CLI metadata — `@ description <string>` attaches a human-readable description to a CLI command's metadata.
#   • Annotation syntax — used together with `@ cli` to annotate entry points with metadata for CLI generation.
#
# Common mistakes:
#   • Using description without a corresponding @cli annotation — `@ description` only has meaning when attached to a `@ cli` entry point.
#
# See also: version
# =============================================================================

# description — CLI description annotation
#
# GRAMMAR:
#   annotation :← '@' 'description' stringLit
#
# EXPECTED OUTPUT:
#   none — the runner executes the entry and prints nothing; empty golden.
#
# BACKEND:
#   declaration-only CLI metadata (whitelist: description/descriptio.fab).
#

@ cli { name = "descriptio-smoke" }
@ description "Short CLI description"
main args args {
}