Skip to main content

execute_plugin_command

Function execute_plugin_command 

Source
pub async fn execute_plugin_command(
    command: &RegisteredPluginCommand,
    slash_args: &str,
    env: Option<&ToolEnv>,
) -> Result<PluginCommandOutput>
Expand description

Run a plugin command that needs none of the chat’s tools. env is the environment a shell-backed command is spawned with: the session’s, as the chat’s bash gets it; None = inherit the process environment. The command still runs from the plugin’s own folder.