# https://taskfile.dev version: "3" includes: base: ./.scripts/base/Taskfile.yml cli: ./.scripts/cli/Taskfile.yml tasks: default: cmds: - task --list-all silent: true build: desc: Compile TypeScript source to dist/ cmds: - task: cli:build silent: true run: desc: | Run any drawio-tools action against a .drawio file. Usage: task run -- --file="/path/to/diagram.drawio" --action= [--page ] cmds: - task: cli:run vars: CLI_ARGS: "{{ .CLI_ARGS }}" silent: true generate: desc: | Build a native .drawio file from a YAML Diagram IR. Usage: task generate -- --file="spec.yaml" --output="diagram.drawio" cmds: - task: cli:run vars: CLI_ARGS: "--action=build {{ .CLI_ARGS }}" silent: true validate: desc: | Validate a .drawio file (XML well-formedness + required structure). Usage: task validate -- --file="/path/to/diagram.drawio" cmds: - task: cli:validate vars: CLI_ARGS: "{{ .CLI_ARGS }}" silent: true