Complete rewrite and re-architecture Osmedeus Engine in v5

This commit is contained in:
j3ssie
2026-01-18 19:32:24 +08:00
commit 7a2c5a5dc9
743 changed files with 99767 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
name: test-bool-precondition
kind: module
description: Test workflow for boolean params in pre_condition
tags: test,params,boolean,precondition
params:
- name: target
required: true
- name: run_scan
type: bool
default: true
- name: enable_debug
type: bool
default: false
steps:
- name: always-runs
type: bash
command: echo "This step always runs for {{target}}"
# This step only runs when run_scan is true (native boolean check)
- name: scan-step
type: bash
pre_condition: "run_scan"
command: echo "SCAN RUNNING - run_scan is true"
# This step only runs when run_scan is false (negation)
- name: skip-scan-step
type: bash
pre_condition: "!run_scan"
command: echo "SCAN SKIPPED - run_scan is false"
# This step only runs when enable_debug is true
- name: debug-step
type: bash
pre_condition: "enable_debug"
command: echo "DEBUG ENABLED"
# Compound condition: both must be true
- name: scan-with-debug
type: bash
pre_condition: "run_scan && enable_debug"
command: echo "SCAN WITH DEBUG MODE"
- name: summary
type: bash
command: |
echo "=== Pre-condition Test Summary ==="
echo "run_scan: {{run_scan}}"
echo "enable_debug: {{enable_debug}}"