Core Library0.xAPI reference

Choose documentation 1

pr-173

Current version

pr-173
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

function libtmux-elixir

Settings.fetch_option/2

Looks up a built-in option by exact name or an upstream alias.

Source and package
Qualified name
LibTmux.Settings.fetch_option/2
Module
LibTmux
Declared in
Settings
Package
libtmux
Source
lib/libtmux/settings.ex
fetch_option(name, release \\ "3.8") @spec fetch_option(String.t(), String.t()) :: {:ok, option()} | {:error, LibTmux.Error.t()}

Description

User options and abbreviations return an error.

Parameters

Examples

iex> alias LibTmux.Settings
iex> {:ok, option} = Settings.fetch_option("history-limit", "3.3")
iex> {option.scopes, option.type}
{[:session], :number}

Recorded calls

source calls
No call edges in the Elixir model.

The Elixir reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Settings.fetch_option/2.

Esc
Search in

Type to search.

Reference previewOpen reference