cli/pkg/dev
Snider f5bcef421e
fix(i18n): restore missing translation keys for health command (#65)
* fix(i18n): restore missing translation keys for health command

The locale consolidation in 39de3c2 removed keys still used by
cmd_health.go. Added back:
- cmd.dev.health.* keys (long, repos, to_push, to_pull, etc.)
- common.status.* keys (dirty, clean, synced, up_to_date)
- common.flag.registry

Also fixed workspace.LoadConfig() returning default PackagesDir
when no .core/workspace.yaml exists, which was overriding repo
paths from repos.yaml.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: add nil checks for workspace.LoadConfig callers

LoadConfig now returns nil when no .core/workspace.yaml exists.
Added defensive nil checks to all callers to prevent panics.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* refactor: align workspace.LoadConfig error handling

Both call sites now gracefully ignore errors and fall back to defaults,
since workspace config is optional for setup commands.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 03:55:01 +00:00
..
cmd_api.go refactor(plugin): rename plugin files and update command structure 2026-01-31 11:39:19 +00:00
cmd_bundles.go refactor(cli): move commands from cmd/ to pkg/ with self-registration 2026-01-30 21:55:55 +00:00
cmd_ci.go refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
cmd_commit.go feat(workspace): implement workspace.yaml support 2026-02-01 02:18:19 +00:00
cmd_dev.go refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
cmd_health.go feat(workspace): implement workspace.yaml support 2026-02-01 02:18:19 +00:00
cmd_impact.go refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
cmd_issues.go feat(workspace): implement workspace.yaml support 2026-02-01 02:18:19 +00:00
cmd_pull.go feat(workspace): implement workspace.yaml support 2026-02-01 02:18:19 +00:00
cmd_push.go feat(workspace): implement workspace.yaml support 2026-02-01 02:18:19 +00:00
cmd_reviews.go feat(workspace): implement workspace.yaml support 2026-02-01 02:18:19 +00:00
cmd_sync.go refactor(plugin): rename plugin files and update command structure 2026-01-31 11:39:19 +00:00
cmd_vm.go refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
cmd_work.go feat(workspace): implement workspace.yaml support 2026-02-01 02:18:19 +00:00
registry.go fix(i18n): restore missing translation keys for health command (#65) 2026-02-01 03:55:01 +00:00
service.go feat(workspace): implement workspace.yaml support 2026-02-01 02:18:19 +00:00