Refactor tool execution pipeline

This commit is contained in:
2026-06-21 14:30:40 +08:00
parent 3e5f0658b3
commit 99c1e9cd6c
81 changed files with 3587 additions and 5317 deletions
+14
View File
@@ -0,0 +1,14 @@
//! datetime — 本地时间
use chrono::Local;
fn main() {
let _ = std::io::stdin().read_line(&mut String::new());
let now = Local::now();
let out = serde_json::json!({
"type": "result",
"content": format!("当前时间: {}\n星期: {}\n时区: {}",
now.format("%Y-%m-%d %H:%M:%S"), now.format("%A"), now.offset())
});
println!("{out}");
}