Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

runner

Namespace: global/api/runner

fn install_package

fn install_package(runner: HookRunner, package: String)
Installs the provided package.

fn os_short_name

fn os_short_name(runner: HookRunner) -> String
Returns the short ID of the current operating system (e.g., "arch, "debian").

fn run_command

fn run_command(runner: HookRunner, program: String, args: Array, interactive: bool, request_password_injection: bool, env: Map)
fn run_command(runner: HookRunner, program: String, args: Array, interactive: bool, request_password_injection: bool, env: Map, cwd: String)
Runs any command with the stored permissions.

If root privileges are needed, set program to sudo or interactive to true.

Note: interactive mode disrupts the clean UI.

fn clone_git_repository

fn clone_git_repository(runner: HookRunner, url: String, target: String)
fn clone_git_repository(runner: HookRunner, url: String, target: String, tag: String)
Clones a git repository.