refactor(setup/mod): selective imports + drop dead logging import (ADR-025 L3)
setup/mod.nu had 4 star-imports. Resolution per target: Converted to selective: config/accessor.nu -> [config-get] 1 symbol utils.nu (re-export) -> [create_versions_file ...] 4 symbols config.nu (re-export) -> [env_file_providers ...] 2 symbols Dropped: utils/logging.nu -> 0 used symbols in this file DEAD Also promoted the accessor import to absolute path (lib_provisioning/config/accessor/core.nu) per ADR-025 rule. Validation: nu --ide-check 50 setup/mod.nu -> 0 errors Refs: ADR-025, .coder/benchmarks/phase2-transitivity.md Layer 3
This commit is contained in:
parent
61b81b1b67
commit
b551554519
1 changed files with 6 additions and 5 deletions
|
|
@ -2,12 +2,13 @@
|
||||||
# Orchestrates all setup subcommands with helper functions for configuration management
|
# Orchestrates all setup subcommands with helper functions for configuration management
|
||||||
# Follows Nushell guidelines: explicit types, single purpose, no try-catch
|
# Follows Nushell guidelines: explicit types, single purpose, no try-catch
|
||||||
|
|
||||||
use ../config/accessor.nu *
|
# Selective imports (ADR-025 Phase 3 Layer 3).
|
||||||
use ../utils/logging.nu *
|
# utils/logging.nu star-import was dead (no symbols used in this file) — removed.
|
||||||
|
use lib_provisioning/config/accessor/core.nu [config-get]
|
||||||
|
|
||||||
# Re-export existing utilities and config helpers
|
# Re-export existing utilities and config helpers (selective)
|
||||||
export use utils.nu *
|
export use utils.nu [create_versions_file providers_install setup_config_path tools_install]
|
||||||
export use config.nu *
|
export use config.nu [env_file_providers install_config]
|
||||||
# Note: wizard.nu is imported by callers directly - avoid circular import with mod.nu
|
# Note: wizard.nu is imported by callers directly - avoid circular import with mod.nu
|
||||||
|
|
||||||
# ============================================================================
|
# ============================================================================
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue