52 lines
927 B
Plaintext
52 lines
927 B
Plaintext
![]() |
# Configuration System Module Index
|
||
|
# Central import point for the new configuration system
|
||
|
|
||
|
# Core configuration functionality
|
||
|
export use loader.nu *
|
||
|
export use accessor.nu *
|
||
|
export use migration.nu *
|
||
|
|
||
|
# Convenience function to get the complete configuration
|
||
|
export def config [] {
|
||
|
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
|
||
|
}
|