utils

package
v0.0.0-...-a7c31ce Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Indentation = `  `

Variables

This section is empty.

Functions

func DummyImage

func DummyImage(width, height int, backgroundColor, foregroundColor, text, format string) string

func Examples

func Examples(s string) string

Examples normalizes a command's examples to follow the conventions.

func LongDesc

func LongDesc(s string) string

LongDesc normalizes a command's long description to follow the conventions.

func Normalize

func Normalize(cmd *cobra.Command) *cobra.Command

Normalize perform all required normalizations on a given command.

func NormalizeAll

func NormalizeAll(cmd *cobra.Command) *cobra.Command

NormalizeAll perform all required normalizations in the entire command tree.

func PrefixedPath

func PrefixedPath(prefix, path string) string

Types

type LogrusCollectorDebugger

type LogrusCollectorDebugger struct {
}

func (LogrusCollectorDebugger) Event

func (d LogrusCollectorDebugger) Event(e *debug.Event)

func (LogrusCollectorDebugger) Init

func (d LogrusCollectorDebugger) Init() error

Jump to

Keyboard shortcuts

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