color

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 9 Imported by: 0

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 genericclioptions.IOStreams) *cobra.Command

NewCmdColor returns new initialized instance of color sub command.

Types

type ColorOptions

type ColorOptions struct {
	Type    []string
	Example bool

	genericclioptions.IOStreams
}

ColorOptions is an options struct to support color subcommands.

func NewColorOptions

func NewColorOptions(ioStreams genericclioptions.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