Skip to main content

execute_with

Function execute_with 

Source
pub async fn execute_with<S: TerminalSetup, E: EventSource>(
    args: &SetupArgs,
    env: &SetupEnv,
    setup: &mut S,
    events: &mut E,
    is_terminal: bool,
) -> Result<()>
Expand description

lev setup: the flags path, or the wizard.

is_terminal is injected because the answer is a property of the real process’s stdout, and a wizard that starts on a pipe would take over a terminal that isn’t there.