cmdutils

package
v0.11.47 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: GPL-3.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

package Cmdutils provides testable helpers to commands only

Index

Constants

View Source
const (
	MAGENTA_TERMINAL string = "\x1b[35m%s\x1b[0m"
	GREEN_TERMINAL   string = "\x1b[32m%s\x1b[0m"
	CYAN_TERMINAL    string = "\x1b[36m%s\x1b[0m"
	RED_TERMINAL     string = "\x1b[31m%s\x1b[0m"
	GREY_TERMINAL    string = "\x1b[18m%s\x1b[0m"
	BOLD_TERMINAL    string = "\x1b[1m%s"
)

Variables

This section is empty.

Functions

func BuildOptionsList added in v0.7.7

func BuildOptionsList(ctx context.Context, conf *config.Config, showPipelineOnly bool) []list.Item

func DisplayTaskSelection

func DisplayTaskSelection(ctx context.Context, conf *config.Config, showPipelineOnly bool) (string, error)

func NewItem added in v0.7.0

func NewItem(title, desc string) list.Item

func PrintSummary

func PrintSummary(g *scheduler.ExecutionGraph, chanOut io.Writer, detailedSummary bool)

printSummary is a TUI helper

func TuiRun added in v0.7.0

func TuiRun(ctx context.Context, initialModel TuiModel) (string, error)

Types

type TuiModel added in v0.7.0

type TuiModel struct {
	// contains filtered or unexported fields
}

func NewTuiModel added in v0.7.0

func NewTuiModel(initialItems []list.Item) TuiModel

func (TuiModel) Init added in v0.7.0

func (m TuiModel) Init() tea.Cmd

func (TuiModel) Selected added in v0.7.0

func (m TuiModel) Selected() string

func (TuiModel) Update added in v0.7.0

func (m TuiModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (TuiModel) View added in v0.7.0

func (m TuiModel) View() string

Jump to

Keyboard shortcuts

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