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

Commits on Mar 27, 2024

  1. refactor(cmd): move commands to internal package

    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.
    emilkje committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    485be92 View commit details
    Browse the repository at this point in the history
  2. refactor(cmd): consolidate flag vars into InteractiveChatOptions

    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 committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    ce72a56 View commit details
    Browse the repository at this point in the history