shitbox/src/cmd/true/mod.rs

19 lines
382 B
Rust
Raw Normal View History

2022-12-20 12:05:21 -05:00
use crate::Path;
2022-12-20 18:35:45 -05:00
use clap::Command;
2022-12-20 12:05:21 -05:00
use std::process;
pub const PATH: Path = Path::Bin;
2022-12-20 18:35:45 -05:00
#[must_use]
2022-12-20 12:05:21 -05:00
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);
}