pub async fn run_type( life: &Lifecycle, target: Option<&str>, text: &str, clear: bool, submit: Option<&str>, focus_only: bool, capture: CaptureOpts, ) -> Result<Value, CliError>