shitbox/src/cmd/true/mod.rs

18 lines
370 B
Rust

use clap::Command;
use crate::Path;
use std::process;
pub const PATH: Path = Path::Bin;
pub fn cli() -> Command {
Command::new("true")
.about("Does nothing successfully")
.long_about("Exit with a status code indicating success")
.version(env!("CARGO_PKG_VERSION"))
.author("Nathan Fisher")
}
pub fn run() {
process::exit(0);
}