aboutsummaryrefslogtreecommitdiff
path: root/mling/src/cli.rs
diff options
context:
space:
mode:
authorWeicao-CatilGrass <1992414357@qq.com>2026-05-31 02:42:52 +0800
committer魏曹先生 <1992414357@qq.com>2026-05-31 17:19:20 +0800
commit2aa7bda3cb21ce6c052b82e08bcab79a625d04f2 (patch)
treef10b89007fc67ca1a948f34abe6869b49296b932 /mling/src/cli.rs
parent3aa409a55e4f2f0ab41b0949cc06eb13c2da4a43 (diff)
Enhance code quality across the entire codebase
Diffstat (limited to 'mling/src/cli.rs')
-rw-r--r--mling/src/cli.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/mling/src/cli.rs b/mling/src/cli.rs
index 705c6b4..b628021 100644
--- a/mling/src/cli.rs
+++ b/mling/src/cli.rs
@@ -17,6 +17,11 @@ pub use read::*;
pub mod install;
pub use install::*;
+/// Entry point for the CLI application.
+///
+/// # Panics
+///
+/// Panics on Windows if the virtual terminal processing cannot be enabled.
pub fn cli_entry() {
let mut program = ThisProgram::new();
@@ -62,7 +67,7 @@ pub fn cli_entry() {
#[cfg(windows)]
colored::control::set_virtual_terminal(true).unwrap();
- program.exec();
+ let _ = program.exec();
}
#[renderer]