33 lines
983 B
YAML
33 lines
983 B
YAML
# https://taskfile.dev
|
|
|
|
version: "3"
|
|
|
|
tasks:
|
|
build:
|
|
desc: Compile TypeScript source to dist/
|
|
cmds:
|
|
- |
|
|
./.scripts/cli/api/build.sh {{ .CLI_ARGS }}
|
|
silent: true
|
|
|
|
run:
|
|
desc: |
|
|
Run any drawio-tools action against a .drawio file.
|
|
Usage: task cli:run -- --file="/path/to/diagram.drawio" --action=<action> [--page <index>]
|
|
Actions: summary, page-summary, page-hierarchy, page-connectors-summary, page-connectors-validation,
|
|
page-labels-validation, page-shape-bbox-validation, page-orphans, page-recommendations,
|
|
page-hierarchy-full, page-negative-space-summary, quality, validate
|
|
cmds:
|
|
- |
|
|
./.scripts/cli/api/run.sh {{ .CLI_ARGS }}
|
|
silent: true
|
|
|
|
validate:
|
|
desc: |
|
|
Validate a .drawio file (XML well-formedness + required structure).
|
|
Usage: task cli:validate -- --file="/path/to/diagram.drawio"
|
|
cmds:
|
|
- |
|
|
./.scripts/cli/api/validate.sh {{ .CLI_ARGS }}
|
|
silent: true
|