Enum broot::launchable::Launchable [−][src]
pub enum Launchable {
Printer {
to_print: String,
},
TreePrinter {
tree: Box<Tree>,
skin: Box<StyleMap>,
ext_colors: ExtColorMap,
width: u16,
height: u16,
},
Program {
exe: String,
args: Vec<String>,
working_dir: Option<PathBuf>,
mouse_capture_disabled: bool,
},
SystemOpen {
path: PathBuf,
},
}
Expand description
description of a possible launch of an external program A launchable can only be executed on end of life of broot.
Variants
just print something on stdout on end of broot
Fields of Printer
to_print: String
print the tree on end of broot
execute an external program
Fields of Program
open a path
Fields of SystemOpen
path: PathBuf
Implementations
pub fn tree_printer(
tree: &Tree,
screen: Screen,
style_map: StyleMap,
ext_colors: ExtColorMap
) -> Launchable
pub fn program(
parts: Vec<String>,
working_dir: Option<PathBuf>,
con: &AppContext
) -> Result<Launchable>
Trait Implementations
Performs the conversion.