Skip to content

Commit f6f6ea9

Browse files
refactor: extract profile commands from main.rs to dedicated module (#403)
- Create commands/profile.rs with all profile command handlers - Move 660 lines of profile logic out of main.rs - Reduce main.rs from 1,589 lines to 929 lines (41.5% reduction) - Split into focused handlers: list, path, show, set, remove, validate, default-enterprise, default-cloud - Update commands/mod.rs to include profile module - Remove unused Context import from main.rs - All 45 tests passing - No clippy warnings Main.rs now focuses on CLI parsing, initialization, and command routing. Closes #402
1 parent df7c002 commit f6f6ea9

File tree

3 files changed

+719
-662
lines changed

3 files changed

+719
-662
lines changed

crates/redisctl/src/commands/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ pub mod api;
44
pub mod cloud;
55
pub mod enterprise;
66
pub mod files_key;
7+
pub mod profile;

0 commit comments

Comments
 (0)