Files
osmedeus/test/testdata/workflows/test-empty-target.yaml
T
j3ssie 1a8ab856fa feat: add empty_target preference and FlowName variable, optimize concurrent file sync
- Add empty_target preference to allow running workflows without explicit target
- Implement FlowName template variable for module context awareness
- Optimize cdnDelete, SyncUpload, SyncDownload with worker pool concurrency
- Load workflow preferences early for --empty-target CLI flag support
- Add unit tests for preferences and E2E tests for FlowName functionality
- Update linter to recognize ModuleName and FlowName as built-in variables
2026-01-28 18:47:45 +08:00

26 lines
669 B
YAML

name: test-empty-target
kind: module
description: Test workflow with empty_target preference enabled - should run without -t flag
# This workflow demonstrates empty_target preference
# Running: osmedeus run -m test-empty-target (no -t flag needed)
preferences:
empty_target: true # Equivalent to --empty-target
params:
- name: message
default: "Running without explicit target"
steps:
- name: show-generated-target
type: bash
command: 'echo "Generated target: {{Target}}"'
- name: echo-message
type: bash
command: 'echo "{{message}}"'
- name: complete
type: function
function: 'log_info("Empty target workflow completed")'