diff options
| author | 2025-11-17 19:29:52 +0800 | |
|---|---|---|
| committer | 2025-11-17 19:29:52 +0800 | |
| commit | 0293765e18a50eb956fd831cc10000292ed36e2c (patch) | |
| tree | bb716ec7febae7da1e3ae2d93e39cc7a2996529c /src/main.rs | |
| parent | 95eebaecf0e1076b4558992f7fe3f1676b27a681 (diff) | |
| download | mvp-0293765e18a50eb956fd831cc10000292ed36e2c.tar.gz mvp-0293765e18a50eb956fd831cc10000292ed36e2c.zip | |
feat: update dependencies and enhance logging in CLI application
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index c3fd598..4561e2f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,5 @@ use clap::Parser; +use tklog::{Async::Log, LogOption, LOG}; #[derive(Parser, Debug)] #[command(name = "mt")] @@ -9,5 +10,6 @@ struct Args { fn main() { let args = Args::parse(); - println!("Hello from CLI, {}!", args.name); + let log = Log::new(); + tklog::info!(&format!("Hello from CLI, {}!", args.name)); } |
