References

References allow the usage of other tasks defined in other build files. They can be used to split up different tasks into separate files.

Each build file can have a reference map. The reference points to other build file containing more tasks. References can be used directly from the cli or in task dependencies.

.hammerkit.yaml
references:
  foo: project/foo
project/foo/.hammerkit.yaml
tasks:
  example:
    cmds:
      - echo "foo bar"

The task name example in the referenced build file will be prepended with the reference name foo and can be used as foo:example

hammerkit foo:example

Last updated