color

package
v0.2.0-alpha.13 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: MIT Imports: 9 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 color print colors supported by the current terminal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdColor

func NewCmdColor(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command

NewCmdColor returns new initialized instance of color sub command.

Types

type ColorOptions

type ColorOptions struct {
	Type    []string
	Example bool

	genericiooptions.IOStreams
}

ColorOptions is an options struct to support color subcommands.

func NewColorOptions

func NewColorOptions(ioStreams genericiooptions.IOStreams) *ColorOptions

NewColorOptions returns an initialized ColorOptions instance.

func (*ColorOptions) Complete

func (o *ColorOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options.

func (*ColorOptions) Run

func (o *ColorOptions) Run(args []string) error

Run executes a color subcommand using the specified options.

func (*ColorOptions) Validate

func (o *ColorOptions) Validate(cmd *cobra.Command, args []string) error

Validate makes sure there is no discrepency in command options.

Jump to

Keyboard shortcuts

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