mirror of
https://github.com/Hopiu/zoxide.git
synced 2026-05-15 18:53:10 +00:00
16 lines
279 B
Rust
16 lines
279 B
Rust
|
|
use crate::util;
|
||
|
|
use anyhow::Result;
|
||
|
|
use structopt::StructOpt;
|
||
|
|
|
||
|
|
#[derive(Debug, StructOpt)]
|
||
|
|
#[structopt(about = "Remove a directory")]
|
||
|
|
pub struct Remove {
|
||
|
|
path: String,
|
||
|
|
}
|
||
|
|
|
||
|
|
impl Remove {
|
||
|
|
pub fn run(&self) -> Result<()> {
|
||
|
|
util::get_db()?.remove(&self.path)
|
||
|
|
}
|
||
|
|
}
|