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`.
This commit is contained in:
2 files changed
+6
-6
No files matched your search
@@ -0,0 +1,4 @@
|
|||||||
|
pub mod cli;
|
||||||
|
pub mod commands;
|
||||||
|
pub mod hardware;
|
||||||
|
pub mod utils;
|
||||||
+2
-6
@@ -1,11 +1,7 @@
|
|||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
|
|
||||||
mod cli;
|
use lapctl::cli::{Cli, Commands};
|
||||||
mod commands;
|
use lapctl::commands;
|
||||||
mod hardware;
|
|
||||||
mod utils;
|
|
||||||
|
|
||||||
use cli::{Cli, Commands};
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let cli = Cli::parse();
|
let cli = Cli::parse();
|
||||||
|
|||||||
Reference in new issue
Block a user