Skip to main content

install

Function install 

Source
pub fn install(
    root: &Path,
    options: &Options,
    machine: &Machine,
    command: &str,
    ask: &mut dyn FnMut(&str) -> bool,
    ready: &mut dyn FnMut(&str) -> Result<Duration, String>,
) -> Result<String, String>
Expand description

Installs as options say in root, on machine, the server run as command; ask is asked whether to write the files it is shown. After writing, ready is given what there is to print so far and runs the server with --ready: how long that took, or why it failed. Returns what to print, or the error.