tmuxopt

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

type Loader struct {
	Tmux tmux.Driver
	// contains filtered or unexported fields
}

Loader loads tmux options inot user-specified variables.

func (*Loader) Load

func (l *Loader) Load(req tmux.ShowOptionsRequest) (err error)

Load loads tmux options using the underlying tmux.Driver with the provided request. This will fill all previously specified values and vars.

func (*Loader) StringVar

func (l *Loader) StringVar(dest *string, option string)

StringVar specifies that the given option should be loaded as a string.

func (*Loader) Var

func (l *Loader) Var(val Value, option string)

Var specifies that the given option should be loaded into the provided Value object.

type Value

type Value interface {
	Set(value string) error
}

Value is a receiver for a tmux option value.

Jump to

Keyboard shortcuts

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