add simple cli binary
This commit is contained in:
parent
db95723f8e
commit
8b08d2081b
7
src/bin/evalexpr.rs
Normal file
7
src/bin/evalexpr.rs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
pub fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
|
let args = std::env::args().skip(1).collect::<Vec<String>>().join(" ");
|
||||||
|
|
||||||
|
println!("{}", evalexpr::eval(&args)?);
|
||||||
|
|
||||||
|
Ok(())
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user