feat(hive): add --current flag to config bootstrap command#14
Merged
Conversation
`hive config bootstrap --current` outputs the current effective configuration (merged from all sources) instead of package defaults, making it easier to see what's actually active and use it as a starting point for overrides. Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Pull request overview
This PR adds a --current / -c flag to the hive config bootstrap command, enabling users to bootstrap their config file from the current effective configuration (merged from all sources) rather than just the package defaults. This is useful for users who want to see what settings are actually active and use them as a starting point for customization.
Changes:
- Added
--current/-cflag tobootstrapcommand that outputs current effective config instead of defaults - Modified
_create_bootstrap_headerto accept acurrentparameter to customize the header text - Added
_generate_current_bootstrap_contentfunction to generate bootstrap content from the loaded configuration
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
profiles/agents/packages/hive_cli/src/hive_cli/commands/config_cmd.py |
Implements the --current flag functionality by adding parameter to header generation, creating new function to generate current config bootstrap content, and updating bootstrap command and helper functions |
profiles/agents/packages/hive_cli/tests/test_config_cmd.py |
Adds comprehensive test coverage for the new --current flag including stdout output, short flag, file creation, and header differentiation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
hive config bootstrap --current/-coutputs the current effective configuration (merged from all sources) instead of package defaultsTest plan
--currentprints current config to stdout-cshort flag works--currentwith file path creates file_generate_current_bootstrap_contentstructureMade with Cursor