shitbox/utilbox/commands/mount/mod.rs
Nathan Fisher d248f7d17b Remove Default constraint on Cmd trait and begin removing
derive(Default) from applets
2023-04-17 23:27:57 -04:00

20 lines
371 B
Rust

use clap::{ArgMatches, Command};
use shitbox::Cmd;
#[derive(Debug)]
pub struct Mount;
impl Cmd for Mount {
fn cli(&self) -> Command {
Command::new("mount")
}
fn run(&self, _matches: &ArgMatches) -> Result<(), Box<dyn std::error::Error>> {
Ok(())
}
fn path(&self) -> Option<shitbox::Path> {
Some(shitbox::Path::Bin)
}
}