evoke/main.rs
1//! Format, lint, build, and deploy workspace binaries and Nvim libs.
2//!
3//! # Errors
4//! - Cargo commands or file copy operations fail.
5#![feature(exit_status_error)]
6
7mod cargo_metadata;
8mod cmds;
9
10/// Format, lint, build, and deploy workspace binaries and Nvim libs.
11#[ytil_sys::main]
12fn main() -> rootcause::Result<()> {
13 match cmds::Cmd::from_env()? {
14 cmds::Cmd::Help(help) => print!("{}", help.text()),
15 cmds::Cmd::Ci(command) => command.run(&ytil_sys::dir::get_workspace_root()?)?,
16 cmds::Cmd::Local(mut args) => cmds::local::run(&mut args)?,
17 }
18 Ok(())
19}