Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(cmd): move commands to internal package #3

Merged
merged 2 commits into from
Mar 27, 2024
Merged

Conversation

emilkje
Copy link
Member

@emilkje emilkje commented Mar 27, 2024

Both interactive and non-interactive commands now
lives as separate structs inside internal/cmd.

This change reduces the complexity of the cobra
entry point and pave the way to introduce tests.

Additional changes:
renamed the gci prefix for internal imports from
emilkje/cwc to intility/cwc to properly format the imports.

Both interactive and non-interactive commands now
lives as separate structs inside internal/cmd.

This change reduces the complexity of the cobra
entry point and pave the way to introduce tests.

Additional changes:
renamed the gci prefix for internal imports from
emilkje/cwc to intility/cwc to properly format the
imports.
Consolidate individual flag variables into a single struct,
InteractiveChatOptions, for better code organization. Adjust
initialization and usage of these options in CreateRootCommand and
initFlags functions to match the new structure. This change simplifies
the command setup and makes future maintenance easier.
@emilkje emilkje merged commit 064f6d8 into main Mar 27, 2024
4 checks passed
@emilkje emilkje deleted the refactor/cmd branch March 27, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant