use super::Cmd; use clap::Command; use std::{error::Error, process}; #[derive(Debug, Default)] pub struct True; impl Cmd for True { fn cli(&self) -> clap::Command { Command::new("true") .about("Does nothing successfully") .long_about("Exit with a status code indicating success") .author("Nathan Fisher") } fn run(&self, _matches: &clap::ArgMatches) -> Result<(), Box> { process::exit(0); } fn path(&self) -> Option { Some(crate::Path::Bin) } }