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