CLI reference¶
Usage: tartan-maker [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
-h, --help Show this message and exit.
Commands:
render Render a tartan to SVG or PNG.
srt Generate SRT-compatible pallet and threadcount fields.
inspect Inspect and validate a tartan spec.
parse-sett Parse compact sett notation and print YAML pair form.
color Resolve a web color name or hex value to #RRGGBB.
normalize Print a normalized YAML view of a tartan spec.
Example paths below refer to a checkout of the source repository; installed wheels do not ship the examples directory. For a standalone first-run example, see the quick start.
render¶
Render a YAML tartan spec to SVG or PNG.
The output format is inferred from the output filename.
srt¶
Generate Scottish Register-style pallet and threadcount fields.
inspect¶
Validate and summarize a tartan spec.
parse-sett¶
Parse compact sett notation and print YAML pair form.
color¶
Resolve a web color name or hex value to normalized #RRGGBB.
normalize¶
Print a normalized YAML view of a tartan spec.
Logging¶
The CLI uses spdlog directly.
Show warnings:
Write logs to a file: