You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(go): use core/go primitives correctly — clean audit (Mantis #1220)
Land COMPLIANT-verdict use-core/go-correctly pass on cli. Audit went
from 100 findings → 0 (fully compliant per
/Users/snider/Code/core/go/tests/cli/v090-upgrade/audit.sh).
Highlights:
- pkg/cli/i18n.go: T() now routes through *Core.I18n().Translate(...)
when the CLI is initialised with a Core, falling back to the standalone
cli/pkg/i18n.Default().T() only when uninitialised. Adds three
i18n-key-builder helpers (wordLabel / progressMessage / actionFailed)
that compose key prefixes and call the canonical T(...)
- pkg/cli/commands.go: register-style refactor with Result propagation
- pkg/cli/{app,command,errors,output,runtime,utils,frame/layout}.go:
banned-import cleanup + core.E migration
- cmd/core/{config,doctor,help,pkgcmd}/...: Result propagation +
banned-import cleanup across 12 cmd files
21 files changed, 291/-180. Build, vet, test all clean.
audit.sh verdict: COMPLIANT (every counter at 0).
Closes tasks.lthn.sh/view.php?id=1220
Co-authored-by: Codex <noreply@openai.com>
0 commit comments