mirror of
https://github.com/holos-run/holos.git
synced 2026-03-20 09:15:02 +00:00
Previously the Command core type was only useful for Validators and was a bit hacky in that Holos appends the directory to the end of the argument vector. This patch changes the Command type to represent a generic command for use as a Generator, Transformer, or Validator. The type is extended to support the semantics of reading output from a file, directory, or standard output pipe. Go templates are used to fill in Holos managed data values, for example the temporary directory associated with the pipeline task. The TaskData structu represents these values passed into the template engine.