style

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2023 License: BSD-3-Clause-Clear Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Box = &pterm.BoxPrinter{
	VerticalString:          "│",
	TopRightCornerString:    "╰",
	TopLeftCornerString:     "╯",
	BottomLeftCornerString:  "╮",
	BottomRightCornerString: "╭",
	HorizontalString:        "─",
	BoxStyle:                &pterm.Style{pterm.FgGray},
	TextStyle:               &pterm.ThemeDefault.BoxTextStyle,
	RightPadding:            3,
	LeftPadding:             3,
	TopPadding:              1,
	BottomPadding:           1,
	TitleTopLeft:            true,
}
View Source
var Highlight1 = pterm.NewStyle(pterm.Bold, pterm.FgLightCyan).Sprintf
View Source
var Highlight2 = pterm.NewStyle(pterm.Bold, pterm.FgLightMagenta).Sprintf
View Source
var Plain = pterm.NewStyle(pterm.FgWhite).Sprintf
View Source
var Subtle = pterm.NewStyle(pterm.FgGray).Sprintf
View Source
var Wrapper = &pterm.BoxPrinter{
	VerticalString:          "",
	TopRightCornerString:    "",
	TopLeftCornerString:     "",
	BottomLeftCornerString:  "",
	BottomRightCornerString: "",
	HorizontalString:        "",
	BoxStyle:                &pterm.ThemeDefault.BoxStyle,
	TextStyle:               &pterm.ThemeDefault.BoxTextStyle,
	RightPadding:            1,
	LeftPadding:             1,
	TopPadding:              0,
	BottomPadding:           0,
	TitleTopLeft:            false,
}

Functions

func ASNBox

func ASNBox(r *addr.Response) string

func Country

func Country(r *addr.Response) string

func IPBox

func IPBox(r *addr.Response, ptrs []string) string

func NewSpinner

func NewSpinner(cmd *cobra.Command) pterm.SpinnerPrinter

Types

This section is empty.

Jump to

Keyboard shortcuts

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