Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Go API

Go documentation

tmux.Session.SetHooks

Go
  • Python
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust
  • Go
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
tmux
Declared in
Session
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/hook_runtime.go
Other languages
Python Ruby Lua TypeScript Rust Java .NET C++ Swift
SetHooks ( ctx : context.Context , name : string , values : SparseArray[string] , options : SetHooksOptions ) → (SetHooksResult, error)
method [source]
method [source]
SetHooks

SetHooks applies indexed session hook commands in ascending order at this handle's stable session target. With ClearExisting it confirms clearing first, stops at the first failure without rollback, and reports confirmed partial progress. Cancellation may follow accepted commands and cannot disprove their delivery.

In other ports Write a session hook and its indexed commands at once
  • Python libtmux.Session.set_hooks
  • Ruby No source-verified Ruby equivalent is recorded for this operation.
  • Lua No source-verified Lua equivalent is recorded for this operation.
  • TypeScript no equivalent on Session
  • Rust session.Session.set_hooks
  • Java no equivalent on Session
  • .NET no equivalent on Session
  • C++ no equivalent on Session
  • Swift no equivalent on Session

0 declared, 0 inherited

Esc

Type to search.