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 ✅
26 lines
660 B
Plaintext
26 lines
660 B
Plaintext
use ../config/accessor.nu *
|
|
|
|
export def parse_help_command [
|
|
source: string
|
|
name?: string
|
|
--task: closure
|
|
--ismod
|
|
--end
|
|
] {
|
|
#use utils/interface.nu end_run
|
|
let args = ($env.PROVISIONING_ARGS? | default "")
|
|
let has_help = if ($args | str contains "help") or ($args |str ends-with " h") {
|
|
true
|
|
} else if $name != null and $name == "help" or $name == "h" {
|
|
true
|
|
} else { false }
|
|
if not $has_help { return }
|
|
let mod_str = if $ismod { "-mod" } else { "" }
|
|
^(get-provisioning-name) $mod_str ...($source | split row " ") --help
|
|
if $task != null { do $task }
|
|
if $end {
|
|
if not (is-debug-enabled) { end_run "" }
|
|
exit
|
|
}
|
|
}
|