lavoretto
Reuse your subworkflows.
lavorétto (Italian for "work of little importance or of little effort") is a tiny tool useful when working with Google Cloud Platform Workflows.
Installation
npm install --save-dev lavoretto
Usage
Generate a single workflow:
lavoretto \
-i path/to/your/workflow-file \
--subworkflows path/to/your/subworkflows-directory
Generate all single workflows found in a (possibly nested) directory:
lavoretto \
-i path/to/your/workflows-directory \
--subworkflows path/to/your/subworkflows-directory
Options
Option | Default | Explanation |
---|---|---|
input |
undefined |
Path to the workflow file/directory to build. |
outdir |
dist |
Directory where this tool will put the generated workflows. |
header |
true |
Whether to include a comment at the beginning of each generated workflow. Use --no-header if you don't want it. |
footer |
false |
Whether to include a comment at the bottom of each generated workflow. |
See a few more examples in scripts.
Troubleshoot
This tool uses debug for its logs. You can set the environment variable DEBUG=lavoretto:*
to troubleshoot this tool.
Useful links
npm run release:dry-run