2025-10-07 10:32:04 +01:00

19 lines
813 B
Plaintext

use ../lib_provisioning/config/accessor.nu *
# Workflow operations and monitoring
export def "main workflow" [
...args # Workflow command arguments
--infra (-i): string # Infra path
--check (-c) # Check mode only
--out: string # Output format: json, yaml, text
--debug (-x) # Debug mode
] {
# Forward to run_module system via main router
let cmd_args = ([$args] | flatten | str join " ")
let infra_flag = if ($infra | is-not-empty) { $"--infra ($infra)" } else { "" }
let check_flag = if $check { "--check" } else { "" }
let out_flag = if ($out | is-not-empty) { $"--out ($out)" } else { "" }
let debug_flag = if $debug { "--debug" } else { "" }
^($env.PROVISIONING_NAME) "workflow" $cmd_args $infra_flag $check_flag $out_flag $debug_flag --notitles
}