Skip to main content

may_start_entry

Function may_start_entry 

Source
fn may_start_entry(
    config: &Path,
    in_container: bool,
    rule: Option<bool>,
) -> Result<(), String>
Expand description

Whether doctor may start a command read from config (its agentmux entry, and the shell prefix it is started through). rule is srv’s answer about the folder the file is in: whether a host agent there gets only the servers AgentMux writes, because a container agent can write the folder or has run in it (None when srv gave no answer). On this computer a command from the file is started only on a plain no, wherever the file is and whatever named it. Inside a container nothing here runs on the host.