Core LibraryAPI Reference

Choose documentation 1

latest

Current version

latest
English

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

method libtmux-kotlin latest

Shell.choose

Package io.github.libtmux.kotlin.Shell.choose io.github.libtmux.kotlin

Runs one tmux command when a shell command succeeds.

View as Markdown

Source and package
Module
io.github.libtmux.kotlin
Declared in
Shell
Package
io.github.libtmux:libtmux-kotlin
Source
libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ShellOperations.kt
public Kotlin suspending functions Allows a function to call suspending operations and pause without blocking a thread. It does not start a coroutine by itself. Language documentation fun Shell.choose(condition: String, whenTrue: String): Unitpublic Kotlin suspending functions Allows a function to call suspending operations and pause without blocking a thread. It does not start a coroutine by itself. Language documentation fun Shell.choose( condition: String, whenTrue: String, whenFalse: String, ): Unit
methodasyncoverload2 overloads [source]
Parameters
  • condition ( String )

  • whenTrue ( String )

  • whenFalse ( String ) (for choose(condition, whenTrue, whenFalse))

Esc

Type to search.