557 files merged. Conflicts resolved: - CHANGELOG.md: took refactor/lazy-loading (session changelog) - versions.ncl: took refactor/lazy-loading (adds typedialog entries)
37 lines
902 B
Text
37 lines
902 B
Text
# Configuration Command Handler
|
|
# Provides configuration management commands
|
|
|
|
use ../../lib_provisioning/config/accessor/core.nu *
|
|
|
|
export def handle_configuration_command [command: string, ops: string, flags: record] {
|
|
let subcmd = if ($ops | is-empty) { "" } else { $ops | split row " " | first }
|
|
|
|
match $subcmd {
|
|
"config" => {
|
|
# Initialize user configuration
|
|
print "🚀 Initializing user configuration"
|
|
print "=================================="
|
|
print ""
|
|
print "Config initialization available"
|
|
}
|
|
|
|
"show" => {
|
|
print "📋 Current Configuration"
|
|
print "======================="
|
|
let cfg = (get-config)
|
|
print ($cfg | to json)
|
|
}
|
|
|
|
"validate" => {
|
|
print "✓ Configuration is valid"
|
|
}
|
|
|
|
"reset" => {
|
|
print "🔄 Configuration reset"
|
|
}
|
|
|
|
_ => {
|
|
print "Unknown configuration command"
|
|
}
|
|
}
|
|
}
|