cli

package
v0.0.0-...-2710d9e Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute runs the root command

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd creates the root command for the CWT CLI

func SelectSession

func SelectSession(sessions []types.Session, options ...SessionSelectorOption) (*types.Session, error)

SelectSession shows an interactive session selector

Types

type SessionSelectorOption

type SessionSelectorOption func(*sessionSelectorModel)

SessionSelectorOption configures the session selector

func WithSessionFilter

func WithSessionFilter(filter func(types.Session) bool) SessionSelectorOption

WithSessionFilter filters sessions based on a predicate

func WithTitle

func WithTitle(title string) SessionSelectorOption

WithTitle sets the selector title

type SessionSelectorResult

type SessionSelectorResult struct {
	Session  *types.Session
	Canceled bool
}

SessionSelectorResult represents the result of session selection

Jump to

Keyboard shortcuts

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