Jesús Pérez c62e967ce3
chore: complete KCL to Nickel migration cleanup and setup pre-commit
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 
2026-01-08 20:08:46 +00:00

28 lines
970 B
Plaintext

use ../config/accessor.nu *
export def option_undefined [
root: string
src: string
info?: string
] {
_print $"🛑 invalid_option ($src) ($info)"
_print $"\nUse (_ansi blue_bold)((get-provisioning-name)) ($root) ($src) help(_ansi reset) for help on commands and options"
}
export def invalid_task [
src: string
task: string
--end
] {
let show_src = {|color|
if $src == "" { "" } else { $" (_ansi $color)($src)(_ansi reset)"}
}
if $task != "" {
_print $"🛑 invalid (_ansi blue)((get-provisioning-name))(_ansi reset)(do $show_src "yellow") task or option: (_ansi red)($task)(_ansi reset)"
} else {
_print $"(_ansi blue)((get-provisioning-name))(_ansi reset)(do $show_src "yellow") no task or option found !"
}
_print $"Use (_ansi blue_bold)((get-provisioning-name))(_ansi reset)(do $show_src "blue_bold") (_ansi blue_bold)help(_ansi reset) for help on commands and options"
if $end and not (is-debug-enabled) { end_run "" }
}