Nathan Fisher
06b88d2c24
- Split into workspace crates - Split into two binaries `corebox` and `hashbox` - Add `mount` crate to workspace to prepare for third binary `utilbox`
24 lines
561 B
Rust
24 lines
561 B
Rust
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<dyn Error>> {
|
|
process::exit(0);
|
|
}
|
|
|
|
fn path(&self) -> Option<shitbox::Path> {
|
|
Some(shitbox::Path::Bin)
|
|
}
|
|
}
|