display

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToMap

func ToMap(input interface{}) map[string]interface{}

Types

type Console

type Console struct {
}

func (*Console) Msg

func (c *Console) Msg(lines ...string)

func (*Console) Must

func (c *Console) Must(v interface{}, err error) interface{}

func (*Console) Render

func (c *Console) Render(items [][]string, header bool)

func (*Console) RenderError

func (c *Console) RenderError(err error, fatal bool)

func (*Console) RenderHeader

func (c *Console) RenderHeader(line string)

func (*Console) RenderSuccess

func (c *Console) RenderSuccess(line string)

func (*Console) RenderWarning

func (c *Console) RenderWarning(line string, fatal bool)

type Driver

type Driver interface {
	Render(items [][]string, header bool)
	RenderHeader(line string)
	RenderSuccess(line string)
	RenderWarning(line string, fatal bool)
	RenderError(err error, fatal bool)
	Msg(lines ...string)
	Must(v interface{}, err error) interface{}
}

func ResolveDriver

func ResolveDriver(cmd *cobra.Command) Driver

Jump to

Keyboard shortcuts

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