1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
use clap::Parser;
use rustutils_runnable::Runnable;
use std::error::Error;
/// Exit with a status code indicating success.
#[derive(Parser, Clone, Debug)]
#[clap(author, version, about, long_about = None)]
pub struct True {}
impl Runnable for True {
fn run(&self) -> Result<(), Box<dyn Error>> {
Ok(())
}
}
#[test]
fn can_run_successfully() {
let cmd = True {};
assert!(cmd.run().is_ok());
}