worker

package
v2.0.11 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CurrentTitleColor     = color.FgDefault
	CurrentFlagTitleColor = color.FgGreen

	// CurrentHiddenColor the print color for left part of a hidden opt
	CurrentHiddenColor = color.FgDarkGray

	// CurrentDeprecatedColor the print color for deprecated opt line
	CurrentDeprecatedColor = color.FgDarkGray

	CurrentEnvVarsColor = color.FgLightGray

	// CurrentDescColor the print color for description line
	CurrentDescColor = color.FgDarkGray
	// CurrentDefaultValueColor the print color for default value line
	CurrentDefaultValueColor = color.FgCyan
	// CurrentGroupTitleColor the print color for titles
	CurrentGroupTitleColor   = color.FgWhite
	CurrentGroupTitleBgColor = color.BgDim
)

Functions

func New

func New(cfg *cli.Config, opts ...cli.Opt) *workerS

func SetUniqueWorker

func SetUniqueWorker(s cli.Runner)

func UniqueWorker

func UniqueWorker() cli.Runner

func WithConfig

func WithConfig(c *cli.Config) wOpt

func WithHelpScreenSets

func WithHelpScreenSets(showHelpScreen, showHitStates bool) wOpt

Types

type HelpWriter

type HelpWriter interface {
	io.Writer
	io.StringWriter
}

HelpWriter needs to be compatible with io.Writer and io.StringWriter.

Jump to

Keyboard shortcuts

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