Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRootCmd ¶
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 ¶
SessionSelectorResult represents the result of session selection
Click to show internal directories.
Click to hide internal directories.