1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
use std::process; use clap::Parser; use fsyaml::Command; fn main() { let command = Command::parse(); match command.run() { Err(error) => { eprintln!("{}", error); process::exit(1); } Ok(_) => { process::exit(0); } } }