Skip to main content

headless_command

Function headless_command 

Source
pub fn headless_command(
    agent: Agent,
    quoted_task: &str,
    mode: AgentPermissionMode,
) -> String
Expand description

The headless command for one task, already shell-quoted.

task is single-quoted for sh by the caller through super::sh_single_quote; this function receives the quoted form so the two agents’ templates read as the literal command lines they are.