main.rs (251B)
1 use std::process::ExitCode; 2 3 #[cfg(feature = "cli")] 4 fn main() -> ExitCode { 5 kanit_supervisor::handle_cli() 6 } 7 8 #[cfg(not(feature = "cli"))] 9 fn main() -> ExitCode { 10 eprintln!("supervisor compiled without command line"); 11 ExitCode::FAILURE 12 }