Skip to content

Refactor and simplify main command/bootstrap setup #38

@StefanBethge

Description

@StefanBethge

Description:
The current main bootstrap logic has grown into a place where wiring, config loading, dependency creation, and command registration are mixed together. This makes it harder to maintain and reason about.

Goals:

  • Reduce responsibility in main.
  • Make command bootstrapping easier to follow and test.
  • Separate config discovery/loading, dependency construction, and Cobra setup more clearly.

Proposed scope:

  • Extract bootstrap/setup logic from main into smaller functions or dedicated package helpers.
  • Make dependency initialization more explicit.
  • Reduce duplication around config/client creation.
  • Preserve existing CLI behavior.

Acceptance criteria:

  • main is reduced to a small orchestration entry point.
  • Bootstrap responsibilities are split into clearly named helpers.
  • Existing commands and flags continue to behave exactly as before.
  • Tests remain green or are updated where necessary.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions