GlobalSessionScope.SetHooks
SetHooks applies indexed global session-scope hook commands in ascending order. With ClearExisting it confirms clearing before applying sparse Values. It stops at the first failure without rollback; the returned result reports only confirmed partial progress and owns AppliedIndices. Cancellation may follow accepted commands and cannot disprove their delivery.
Source and package
- Qualified name
-
tmux.Global Session Scope. Set Hooks - Package
- tmux
- Declared in
GlobalSessionScope- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/hook_runtime.go
- func (s Global
Session ) SetHooks( ctx contextScope .Context , name string, values SparseArray [string], options SetHooks , ) (SetOptions Hooks , error)Result -
- Parameters
-
-
values(SparseArray [string]) #
tmux command#
The tmux commands behind SetHooks.
tmux C API#
The C declarations in tmux that implement these commands.