ミラー元
https://github.com/eternal-flame-AD/unitdc-rs.git
同期済み 2025-07-29 15:05:33 -05:00
add env_logger in cli version
このコミットが含まれているのは:
コミット
9ace779326
2個のファイルの変更、2行の追加、0行の削除
crates/unitdc-cli
|
@ -6,4 +6,5 @@ edition = "2021"
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
env_logger = "0.10.0"
|
||||
unitdc = { path = "../../" }
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
use unitdc::interpreter::{Interpreter, Output};
|
||||
|
||||
fn main() {
|
||||
env_logger::init();
|
||||
let mut interpreter = Interpreter::new(Box::new(|output| match output {
|
||||
Output::Message(e) => eprintln!("message: {}", e),
|
||||
Output::Quantity(q) => println!("[0]: {}", q),
|
||||
|
|
読み込み中…
Add table
Add a link
新しいイシューから参照