Skip to content

feat(hive): add --current flag to config bootstrap command#14

Merged
igrybkov merged 2 commits intomainfrom
feat/hive-config-bootstrap-current
Feb 25, 2026
Merged

feat(hive): add --current flag to config bootstrap command#14
igrybkov merged 2 commits intomainfrom
feat/hive-config-bootstrap-current

Conversation

@igrybkov
Copy link
Owner

Summary

  • hive config bootstrap --current / -c outputs the current effective configuration (merged from all sources) instead of package defaults
  • Makes it easy to see what's actually active and use it as a starting point for overrides

Test plan

  • Test --current prints current config to stdout
  • Test -c short flag works
  • Test --current with file path creates file
  • Test header text differs between default and current modes
  • Test _generate_current_bootstrap_content structure

Made with Cursor

`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>
Copilot AI review requested due to automatic review settings February 25, 2026 22:10
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 / -c flag to bootstrap command that outputs current effective config instead of defaults
  • Modified _create_bootstrap_header to accept a current parameter to customize the header text
  • Added _generate_current_bootstrap_content function 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.

@igrybkov igrybkov enabled auto-merge February 25, 2026 22:33
@igrybkov igrybkov merged commit 054a2d5 into main Feb 25, 2026
19 checks passed
@igrybkov igrybkov deleted the feat/hive-config-bootstrap-current branch February 25, 2026 22:36
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.

2 participants