Skip to content

Add enable/disable commands for Hive records#231

Merged
maximelb merged 1 commit intocli-v2from
hive-enable-disable
Mar 5, 2026
Merged

Add enable/disable commands for Hive records#231
maximelb merged 1 commit intocli-v2from
hive-enable-disable

Conversation

@maximelb
Copy link
Contributor

@maximelb maximelb commented Mar 5, 2026

Summary

  • Adds hive enable and hive disable subcommands that toggle usr_mtd.enabled without touching record data
  • Adds the same enable/disable commands to all hive shortcut groups (secret, lookup, fp, playbook, etc.)
  • Shortcut for the clunky echo '{"usr_mtd": {"enabled": false}}' | limacharlie hive set ... pattern

Usage

# Direct hive commands
limacharlie hive disable --hive-name dr-general --key my-rule
limacharlie hive enable --hive-name dr-general --key my-rule

# Via shortcut groups
limacharlie secret disable --key my-secret
limacharlie lookup enable --key my-lookup

Test plan

  • Unit tests for hive enable and hive disable
  • Unit tests for shortcut group enable/disable (via secret)
  • All 959 unit tests pass

🤖 Generated with Claude Code

Adds `hive enable` and `hive disable` subcommands that toggle the
usr_mtd.enabled flag without touching record data. Also adds the
same commands to all hive shortcut groups (secret, lookup, dr, etc.).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@maximelb maximelb requested a review from dzimine-lc March 5, 2026 15:34
@maximelb maximelb marked this pull request as ready for review March 5, 2026 15:34
@maximelb maximelb merged commit 89c0628 into cli-v2 Mar 5, 2026
1 check passed
@maximelb maximelb deleted the hive-enable-disable branch March 5, 2026 15:35
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.

1 participant