feat: add module name lookup for module get and database create #512
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
This PR adds the ability to look up modules by name instead of UID, making it easier to work with modules in Redis Enterprise.
Feature 1:
--nameflag forenterprise module getLook up modules by name instead of requiring the UID:
Features:
Feature 2:
--moduleflag forenterprise database createSpecify modules by name when creating a database:
Features:
module_listformat--module search:ARGSTesting
Files Changed
crates/redisctl/src/cli/enterprise.rs- Added--moduleflag to database createcrates/redisctl/src/commands/enterprise/module.rs- Added--nameflag to module getcrates/redisctl/src/commands/enterprise/module_impl.rs- Module name resolution logiccrates/redisctl/src/commands/enterprise/database.rs- Pass modules to create handlercrates/redisctl/src/commands/enterprise/database_impl.rs- Module resolution in database create