2024-03-01 11:33:35 +00:00
|
|
|
use cl_repl::{cli::run, tools::is_terminal};
|
2024-03-01 08:35:58 +00:00
|
|
|
use std::error::Error;
|
|
|
|
|
|
|
|
fn main() -> Result<(), Box<dyn Error>> {
|
2024-03-01 11:33:35 +00:00
|
|
|
if is_terminal() {
|
|
|
|
println!(
|
|
|
|
"--- {} v{} 💪🦈 ---",
|
|
|
|
env!("CARGO_BIN_NAME"),
|
|
|
|
env!("CARGO_PKG_VERSION"),
|
|
|
|
);
|
|
|
|
}
|
2024-03-01 08:35:58 +00:00
|
|
|
run(argh::from_env())
|
|
|
|
}
|