yazi/yazi-parser/src/input/close.rs
2025-07-14 23:08:11 +08:00

14 lines
282 B
Rust

use yazi_shared::event::CmdCow;
#[derive(Default)]
pub struct CloseOpt {
pub submit: bool,
}
impl From<CmdCow> for CloseOpt {
fn from(c: CmdCow) -> Self { Self { submit: c.bool("submit") } }
}
impl From<bool> for CloseOpt {
fn from(submit: bool) -> Self { Self { submit } }
}