Skip to content

Commit 171768c

Browse files
feat(enterprise): add Phase 2 support-package commands (#341)
* feat(enterprise): add Phase 2 support-package commands - Create dedicated support-package command group with better UX - Add smart file naming with timestamps - Implement pre-flight checks (disk space, permissions) - Add JSON output support for all support-package commands - Create SupportPackageResult struct for consistent JSON responses - Add comprehensive documentation for both Phase 1 and Phase 2 - Include CI/CD integration examples for automation - Update CLAUDE.md with structured output as core principle Implements #341 * fix: address clippy warnings and env var expansion issues - Fix collapsible_if and collapsible_else_if clippy warnings - Make config parsing more resilient to missing environment variables - Use shellexpand::env_with_context_no_errors to avoid errors for unused profiles - Allows users to use profiles without having all env vars set * fix: remove broken CommandFactory test The test was trying to use CommandFactory::command() which doesn't exist for enum types with Subcommand derive. Removed the test as it wasn't providing significant value.
1 parent 49e78be commit 171768c

File tree

7 files changed

+1581
-94
lines changed

7 files changed

+1581
-94
lines changed

crates/redisctl/src/cli.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,6 +1076,10 @@ pub enum EnterpriseCommands {
10761076
#[command(subcommand)]
10771077
Stats(EnterpriseStatsCommands),
10781078

1079+
/// Support package generation for troubleshooting
1080+
#[command(subcommand, name = "support-package")]
1081+
SupportPackage(crate::commands::enterprise::support_package::SupportPackageCommands),
1082+
10791083
/// DNS suffix management
10801084
#[command(subcommand)]
10811085
Suffix(crate::commands::enterprise::suffix::SuffixCommands),

crates/redisctl/src/commands/enterprise/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@ pub mod services;
3535
pub mod shard;
3636
pub mod stats;
3737
pub mod suffix;
38+
pub mod support_package;
3839
pub mod usage_report;
3940
pub mod utils;

0 commit comments

Comments
 (0)