cl-repl: Terminal pipe support + fun stylistic fixups

This commit is contained in:
2024-03-01 05:33:35 -06:00
parent 9cae7e4eb8
commit 2eade74d3a
2 changed files with 34 additions and 16 deletions

View File

@@ -1,6 +1,13 @@
use cl_repl::cli::run;
use cl_repl::{cli::run, tools::is_terminal};
use std::error::Error;
fn main() -> Result<(), Box<dyn Error>> {
if is_terminal() {
println!(
"--- {} v{} 💪🦈 ---",
env!("CARGO_BIN_NAME"),
env!("CARGO_PKG_VERSION"),
);
}
run(argh::from_env())
}