From f43a15095c1467e17c1ccf987ee2f6a781479d58 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Thu, 12 Mar 2026 00:36:21 +0545 Subject: [PATCH] refactor(src): restructure CLI module organization and adjust imports Refactor internal CLI module layout to streamline imports and separate concerns. - Enhancements - Consolidated CLI modules into `lapctl::cli` and `lapctl::commands`. - Updated imports in `main.rs` to use absolute paths. - Removed redundant module declarations from `main.rs`. --- src/lib.rs | 4 ++++ src/main.rs | 8 ++------ 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 src/lib.rs diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..56c1ce9 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,4 @@ +pub mod cli; +pub mod commands; +pub mod hardware; +pub mod utils; diff --git a/src/main.rs b/src/main.rs index efb37da..f5ae9bd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,11 +1,7 @@ use clap::Parser; -mod cli; -mod commands; -mod hardware; -mod utils; - -use cli::{Cli, Commands}; +use lapctl::cli::{Cli, Commands}; +use lapctl::commands; fn main() { let cli = Cli::parse();