Skip to content

Conversation

bhouston
Copy link
Member

@bhouston bhouston commented Mar 6, 2025

Enhance CLI Config Command with 'clear' Option and Default Value Indicators

Description

This PR implements the enhancements requested in issue #117 for the CLI config command:

  1. Added a new clear subcommand that allows users to reset a specific configuration option to its default value
  2. Enhanced the list command to indicate which configuration options are using default values

Changes

Added

  • New clear subcommand to reset configuration options to defaults
  • Added getDefaultConfig() function to access default configuration values
  • Added visual indicators in the list command output to distinguish between default and custom values

Updated

  • CLI README.md to document the new clear command
  • Added tests for the new functionality

Example Usage

# Reset a configuration option to its default value
mycoder config clear customPrompt

# List all configuration with default indicators
mycoder config list
# Output example:
# Current configuration:
#   githubMode: false (default)
#   headless: true (default)
#   userSession: false (default)
#   modelProvider: openai (custom)
#   modelName: gpt-4o-2024-05-13 (custom)

Testing

  • Manual testing performed to verify the new functionality works as expected
  • Added unit tests for the new features

Closes #117

@bhouston bhouston merged commit d85ad5a into main Mar 6, 2025
1 check passed
Copy link

🎉 This PR is included in version mycoder-v1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@bhouston bhouston deleted the feature/117-enhance-config-command branch March 12, 2025 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhance CLI Config Command with 'clear' Option and Default Value Indicators

1 participant