styles

package
v0.0.0-...-af3aebc Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureUsageTemplate

func ConfigureUsageTemplate(cmd *cobra.Command)

ConfigureUsageTemplate - styles the usage template to include color

func StyleCommand

func StyleCommand(s string) aurora.Value

StyleCommand - style commands

func StyleCommandUsage

func StyleCommandUsage(s string) string

StyleCommandUsage - style command usage examples

func StyleEnumOption

func StyleEnumOption(s string) string

StyleEnumOption - styles an enum option

func StyleEnumOptions

func StyleEnumOptions(opts []string) string

StyleEnumOptions - enumerate valid enum options

func StyleError

func StyleError(s string) string

StyleError - highlight errors in red

func StyleFlags

func StyleFlags(s string) string

StyleFlags - style flag usage examples

func StyleHeading

func StyleHeading(s string) aurora.Value

StyleHeading - style headings

func StyleOK

func StyleOK(s string) aurora.Value

StyleOK - style ok logs

func StyleOptions

func StyleOptions(s string) aurora.Value

StyleOptions - style command options and flags

Types

This section is empty.

Jump to

Keyboard shortcuts

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