Documentation
¶
Overview ¶
Package list provides the `codexsm list` command.
Index ¶
- func ColorizeRenderedTable(text string, sessions []session.Session, noHeader, hasHealth bool) string
- func ColumnValue(key string, s session.Session, home string, headWidth int, truncateHead bool) string
- func HasHealthColumn(cols []Column) bool
- func NewCommand(resolveSessionsRoot func() (string, error)) *cobra.Command
- func RenderTable(sessions []session.Session, total int, opts RenderOptions) (string, error)
- func TruncateDisplayText(v string, maxRunes int) string
- func WriteDelimited(out io.Writer, sessions []session.Session, sep rune, noHeader bool, ...) error
- func WriteWithPager(out io.Writer, text string, pager bool, pageSize int, hasHeader bool) error
- type Column
- type PagerAction
- type RenderOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorizeRenderedTable ¶
func ColumnValue ¶
func HasHealthColumn ¶
func NewCommand ¶
NewCommand builds the list command.
func RenderTable ¶
func TruncateDisplayText ¶
func WriteDelimited ¶
Types ¶
type PagerAction ¶
type PagerAction int
const ( PagerActionContinue PagerAction = iota PagerActionQuit PagerActionAll )
func ApplyPagerChoice ¶
func ApplyPagerChoice(page, pages int, rawChoice string) (int, PagerAction)
Click to show internal directories.
Click to hide internal directories.