2025-10-07 10:32:04 +01:00
|
|
|
# Configuration System Module Index
|
|
|
|
|
# Central import point for the new configuration system
|
|
|
|
|
|
|
|
|
|
# Core configuration functionality
|
|
|
|
|
export use loader.nu *
|
|
|
|
|
export use accessor.nu *
|
2026-01-14 02:00:23 +00:00
|
|
|
export use accessor_generated.nu * # Schema-driven generated accessors
|
2025-10-07 10:32:04 +01:00
|
|
|
export use migration.nu *
|
|
|
|
|
|
2025-10-09 16:36:27 +01:00
|
|
|
# Encryption functionality
|
|
|
|
|
export use encryption.nu *
|
|
|
|
|
export use commands.nu *
|
|
|
|
|
|
2025-10-07 10:32:04 +01:00
|
|
|
# Convenience function to get the complete configuration
|
2025-12-11 21:57:05 +00:00
|
|
|
# Use as: `use config; config` or `config main`
|
|
|
|
|
export def main [] {
|
2025-10-07 10:32:04 +01:00
|
|
|
get-config
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Quick access to common configuration sections
|
|
|
|
|
export def paths [] {
|
|
|
|
|
get-paths
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export def debug [] {
|
|
|
|
|
get-debug
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export def sops [] {
|
|
|
|
|
get-sops
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export def validation [] {
|
|
|
|
|
get-validation
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Migration helpers
|
|
|
|
|
export def migrate [] {
|
|
|
|
|
use migration.nu show-migration-status
|
|
|
|
|
show-migration-status
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export def migrate-now [
|
|
|
|
|
--dry-run = false
|
|
|
|
|
] {
|
|
|
|
|
use migration.nu generate-user-config
|
|
|
|
|
generate-user-config --dry-run $dry_run
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Configuration validation
|
|
|
|
|
export def validate [] {
|
|
|
|
|
validate-current-config
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Initialize user configuration
|
|
|
|
|
export def init [] {
|
|
|
|
|
init-user-config
|
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
|
|
|
}
|