ksud: Add command to shrink image
This commit is contained in:
@@ -172,6 +172,9 @@ enum Module {
|
||||
|
||||
/// list all modules
|
||||
List,
|
||||
|
||||
/// Shrink module image size
|
||||
Shrink,
|
||||
}
|
||||
|
||||
#[derive(clap::Subcommand, Debug)]
|
||||
@@ -251,6 +254,7 @@ pub fn run() -> Result<()> {
|
||||
Module::Enable { id } => module::enable_module(&id),
|
||||
Module::Disable { id } => module::disable_module(&id),
|
||||
Module::List => module::list_modules(),
|
||||
Module::Shrink => module::shrink_image(),
|
||||
}
|
||||
}
|
||||
Commands::Install => event::install(),
|
||||
|
||||
Reference in New Issue
Block a user