plugin

package
v0.2.30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(command, text string, timeoutSec *int, vars tmpl.Vars) error

Run executes an external command with NOTIFY_* environment variables. The command is run through the system shell (sh -c on Unix, cmd /C on Windows). Dynamic data is passed exclusively via env vars — the command string is NOT expanded through tmpl.Expand to prevent shell injection.

Timeout behavior:

  • nil → 10-second default
  • 0 → no timeout
  • >0 → that many seconds

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL