Skip to content

Commit dac469e

Browse files
feat(enterprise): add comprehensive license management commands (#304) (#308)
* feat(enterprise): add comprehensive license management commands (#304) - Core license commands (get, update, upload, validate, expiry, features, usage) - Multi-profile workflow commands for enterprise-wide license management - License audit across all configured profiles - Bulk license updates with dry-run support - Compliance reporting with CSV export - Automated monitoring with configurable thresholds - Full documentation with automation examples * fix(enterprise): resolve clippy warnings in license commands - Use if-let chains with && syntax for collapsible if statements - Replace manual range checks with RangeInclusive::contains() - Ensures clean CI pipeline for PR #308 * fix(enterprise): improve license date parsing for ISO8601 format - Add support for RFC3339/ISO8601 datetime format (e.g., 2025-10-15T00:18:29Z) - Maintain backward compatibility with date-only format (e.g., 2025-10-15) - Fixes days_remaining calculation to correctly show 30 days instead of -1 - All license commands now working correctly with actual Enterprise API responses
1 parent 3569109 commit dac469e

File tree

7 files changed

+1331
-0
lines changed

7 files changed

+1331
-0
lines changed

crates/redisctl/src/cli.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,9 @@ pub enum EnterpriseCommands {
10331033
/// Log operations
10341034
#[command(subcommand)]
10351035
Logs(crate::commands::enterprise::logs::LogsCommands),
1036+
/// License management
1037+
#[command(subcommand)]
1038+
License(crate::commands::enterprise::license::LicenseCommands),
10361039

10371040
/// Migration operations
10381041
#[command(subcommand)]
@@ -1078,6 +1081,9 @@ pub enum CloudWorkflowCommands {
10781081
pub enum EnterpriseWorkflowCommands {
10791082
/// List available workflows
10801083
List,
1084+
/// License management workflows
1085+
#[command(subcommand)]
1086+
License(crate::commands::enterprise::license_workflow::LicenseWorkflowCommands),
10811087

10821088
/// Initialize a Redis Enterprise cluster
10831089
#[command(name = "init-cluster")]

0 commit comments

Comments
 (0)