10 utils/* + workspace/migrate_to_kcl + mode/* files. Selective imports: utils/imports.nu accessor/functions [get-providers-path get-prov-lib-path get-core-nulib-path] utils/logging.nu accessor/core [config-get] utils/generate.nu accessor/functions [2 symbols] utils/files.nu accessor/core [config-get] + secrets/lib [decode_secret_file] utils/qr.nu accessor/functions [get-provisioning-url] utils/undefined.nu interface + init (kept); accessor DEAD utils/interface.nu accessor/core [config-get] + accessor/functions [get-provisioning-url] + logging [is-debug-enabled] Dead imports dropped: workspace/migrate_to_kcl.nu config/accessor mode/commands.nu utils/logging mode/validator.nu utils/logging Validation: all 10 match pre-existing baselines (25/50/42/2 for noisy files, 0 for the others). No new errors. Refs: ADR-025
29 lines
1.1 KiB
Text
29 lines
1.1 KiB
Text
# config/accessor star-import was dead — dropped (ADR-025 Phase 3 Layer 2).
|
|
use lib_provisioning/utils/interface.nu [_ansi _print end_run]
|
|
use lib_provisioning/utils/init.nu [get-provisioning-name]
|
|
|
|
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 ($env.PROVISIONING_DEBUG? | default false) { end_run "" }
|
|
}
|