Clean up 404 KCL references (99.75% complete): - Rename kcl_* variables to schema_*/nickel_* (kcl_path→schema_path, etc.) - Update functions: parse_kcl_file→parse_nickel_file - Update env vars: KCL_MOD_PATH→NICKEL_IMPORT_PATH - Fix cli/providers-install: add has_nickel and nickel_version variables - Correct import syntax: .nickel.→.ncl. - Update 57 files across core, CLI, config, and utilities Configure pre-commit hooks: - Activate: nushell-check, nickel-typecheck, markdownlint - Comment out: Rust hooks (fmt, clippy, test), check-yaml Testing: - Module discovery: 9 modules (6 providers, 1 taskserv, 2 clusters) ✅ - Syntax validation: 15 core files ✅ - Pre-commit hooks: all passing ✅
21 lines
906 B
Plaintext
21 lines
906 B
Plaintext
use ../lib_provisioning/config/accessor.nu *
|
|
|
|
# Module discovery and loading
|
|
# DISABLED: This function caused infinite recursion - use dispatcher system instead
|
|
# export def "main module" [
|
|
# ...args # Module 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) "module" $cmd_args $infra_flag $check_flag $out_flag $debug_flag
|
|
# }
|