Core LibraryAPI Reference

Choose documentation 3

latest

Current version

latest
English

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

method libtmux-dotnet latest

TmuxChaining.ToRunCommand

Namespace LibTmux.TmuxChaining.ToRunCommand LibTmux

Returns running a hook as one tmux command.

View as Markdown

Source and package
Module
LibTmux
Declared in
TmuxChaining
Package
LibTmux
Source
src/LibTmux/Chaining/TmuxChaining.Hooks.cs
ToRunCommand ( request : HookRequest , hooks : TmuxHooks ) → TmuxCommand
methodstatic [source]

Description#

A hook request names a hook without saying what to do with it, so running and removing are separate here rather than one call that has to guess which was meant.

Parameters
  • request ( HookRequest ) – Which hook to run.

  • hooks ( TmuxHooks ) – The hooks handle whose scope holds it.

Returns

The command, ready to add to a TmuxChain .

Raises
Esc

Type to search.