list

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(opts Options) error

Run scans sessions, optionally filters them by grep query, and writes TSV rows to opts.Out.

Types

type JSONSession added in v0.7.0

type JSONSession struct {
	Source       string `json:"source"`
	ID           string `json:"id"`
	Locator      string `json:"locator"`
	CWD          string `json:"cwd"`
	CWDBasename  string `json:"cwd_basename"`
	Label        string `json:"label"`
	LastEpoch    int64  `json:"last_epoch"`
	LastActivity string `json:"last_activity"`
	CWDExists    bool   `json:"cwd_exists"`
	CWDUnknown   bool   `json:"cwd_unknown"`
}

type Options

type Options struct {
	Grep string
	// ExcludeDir drops sessions whose cwd (or basename, when cwd is empty)
	// contains this substring, case-insensitive. Empty disables the filter.
	ExcludeDir string
	Regex      bool
	NoColor    bool
	// Color overrides auto-detection: "always", "never", or "" (auto).
	// --no-color and NO_COLOR still force off when Color is empty/auto.
	Color string
	JSON  bool
	Limit int
	Out   io.Writer
}

Options controls list output.

Jump to

Keyboard shortcuts

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