Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute(steps []config.Step, defaultVolume int, creds config.Credentials, vars tmpl.Vars) error
Execute runs the given steps (already filtered by the caller). Steps that don't use the audio pipeline (toast, etc.) are fired in parallel at the start. Audio-pipeline steps (sound, say) run sequentially in order.
func FilterSteps ¶
FilterSteps returns only the steps that should run given the current AFK state and invocation mode. Steps with When="" always run; "afk"/"present" filter on idle state; "run"/"direct" filter on whether the invocation came from `notify run`; "hours:X-Y" filters on the current hour (24h local time).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.