feat: add new config command and streamline flags #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change introduces the concept of configurable settings in the main cwc configuration. The rationale behind this change is to enable more configurable options without polluting the commandline interface with more flags.
The configuration can be managed manually by editing the
cwc.yaml
config file or by using thecwc config set
command.--api-version
flag as it's now hardcoded The apiVersion config is confusing the end-user where they conflate the azure api version with the openai model version. The azure api version is dictating the capabilities of the API and should therefore be managed by the cwc system and not the end user.config
cmd to the root command for managing CWC configurationsREADME.md
to include configuration management sectioncmd/cwc.go
to remove obsolete flags related to gitignore and git directory exclusion, configuring throughcwc config
main.go
to suppress certain error messageslogin.go
to adapt to the removal of the--api-version
flag and use the new config structureconfig.go
related to unmarshalling config data