cmdutil

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bold

func Bold(f string, args ...interface{}) string

Bold converts the string to bolder display in the terminal

func Highlight

func Highlight(f string, args ...interface{}) string

Highlight highlights the string in the terminal

func Run

func Run(cmd *cobra.Command)

Run starts a command

func Underline

func Underline(f string, args ...interface{}) string

Underline add the underline display in the terminal for the string

Types

type Example

type Example struct {
	Example string
	Comment string
}

Example represents an example of command line

type Examples

type Examples []Example

Examples represents a group of examples

func (Examples) String

func (es Examples) String() string

String implements the fmt.Stringer interface

Jump to

Keyboard shortcuts

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