Commandline Usage¶
To display distgen help, you can always run dg -h or dg --help.
A detailed explanation of commandline arguments follows:
--projectdir PROJECTDIR- path to directory with project (defaults to current working directory)--distro DIST- use distribution metadata specified byDISTyaml file--multispec MULTISPEC- use MULTISPEC yaml file to fill theTEMPLATEfile--multispec-selector MULTISPEC_SELECTOR- selectors for the multispec filea selector must be present for each multispec group except
distroinfoselectors must be used in form of
<group>=<selector-name>
--spec SPEC- useSPECyaml file to fill theTEMPLATE--output OUTPUT- write result toOUTPUTfile instead of stdout; note, that permissions of the created file respect currentumaskvalue--macros-from PROJECTDIR- load variables fromPROJECTDIR--container CONTAINER_TYPE- container type, e.g.docker--macro MACRO- define distgen’s macro--max-passes PASSES- maximum number of spec expansion passes, defaults to 32--template TEMPLATE- useTEMPLATEfile, e.g.docker.tplor a template string, e.g.{{ config.docker.from }}--multispec-combinationsprint available multispec combinations
Note that --template and --multispec-combinations options are
mutually exclusive; exactly one of them must be used on every invocation.