shitbox/src/cmd/false/mod.rs

19 lines
385 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("false")
.about("Does nothing unsuccessfully")
.long_about("Exit with a status code indicating failure")
.author("Nathan Fisher")
.version(env!("CARGO_PKG_VERSION"))
}
pub fn run() {
process::exit(1);
}