Skip to main content

Module generator

Module generator 

Source
Expand description

Output formatters: JSON, dotenv, single variable, format string, AssemblyInfo.

Corresponds to GitVersion.Output/OutputGenerator in the original.

Functions§

format_template
Substitute {Variable} tokens in a format string. {env:VAR} is also supported.
show_variable
Output a single variable value. Returns an error if the variable does not exist.
to_buildserver_env
Environment-variable export lines for build servers (GitHub Actions and similar).
to_dotenv
dotenv output: GitVersion_Major='1' format.
to_json
JSON output (PascalCase keys matching the original, pretty-printed).