cli

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachToSession

func AttachToSession(sessionName string) error

func HasSession

func HasSession(sessionName string) (bool, error)

func ListPanes

func ListPanes(sessionWindow string) ([]string, error)

func ListSessions

func ListSessions() ([]string, error)

func ListWindows

func ListWindows(sessionName string) ([]string, error)

func Max added in v0.6.0

func Max(x, y int) int

Max returns the larger of x or y.

func Min added in v0.6.0

func Min(x, y int) int

Min returns the smaller of x or y.

func NewCli

func NewCli(v string) *cli

func NewPane

func NewPane(pane tPane) error

func NewSession

func NewSession(session tSession, force bool) error

func NewWindow

func NewWindow(window tWindow) error

func RenamePane

func RenamePane(pane tPane) error

func RenameWindow

func RenameWindow(window tWindow) error

func SetWindowLayout

func SetWindowLayout(window tWindow) error

func TimeSince added in v0.6.0

func TimeSince(d time.Duration) string

Types

type Cmd

type Cmd struct {
	Command   string
	Aliases   []string
	Arg       string
	DescShort string
	DescLong  string
	Flags     [][]string
	Examples  []string
	Run       func() error
}

Jump to

Keyboard shortcuts

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