display

package
v0.14.0-alpha.17 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearCurrentLine added in v0.8.0

func ClearCurrentLine()

func ColumnNames

func ColumnNames(columns []*sql.ColumnType) []string

ColumnNames :: extract names from columns

func ColumnValueAsString

func ColumnValueAsString(val interface{}, colType *sql.ColumnType) (result string, err error)

ColumnValueAsString converts column value to string

func ColumnValuesAsString

func ColumnValuesAsString(values []interface{}, columns []*sql.ColumnType) ([]string, error)

ColumnValuesAsString converts a slice of columns into strings

func ParseJSONOutputColumnValue added in v0.1.2

func ParseJSONOutputColumnValue(val interface{}, colType *sql.ColumnType) (interface{}, error)

segregate data types, ignore string conversion for certain data types : JSON, JSONB, BOOL and so on..

func PrintInstallReports added in v0.3.5

func PrintInstallReports(reports PluginInstallReports, isUpdateReport bool)

PrintInstallReports Prints out the installation reports onto the console

func ShowOutput

func ShowOutput(ctx context.Context, result *queryresult.Result)

ShowOutput displays the output using the proper formatter as applicable

func ShowPaged added in v0.1.1

func ShowPaged(ctx context.Context, content string)

ShowPaged displays the `content` in a system dependent pager

func ShowVarsListJson added in v0.14.0

func ShowVarsListJson(vars []*modconfig.Variable)

func ShowVarsListTable added in v0.14.0

func ShowVarsListTable(vars []*modconfig.Variable)

func ShowWrappedTable added in v0.2.3

func ShowWrappedTable(headers []string, rows [][]string, autoMerge bool)

Types

type PluginInstallReport added in v0.14.0

type PluginInstallReport struct {
	Skipped        bool
	Plugin         string
	SkipReason     string
	DocURL         string
	Version        string
	IsUpdateReport bool
}

func (*PluginInstallReport) String added in v0.14.0

func (i *PluginInstallReport) String() string

type PluginInstallReports added in v0.14.0

type PluginInstallReports []*PluginInstallReport

func (PluginInstallReports) Len added in v0.14.0

func (i PluginInstallReports) Len() int

making the type compatible with sort.Interface so that we can use the sort package utilities

func (PluginInstallReports) Less added in v0.14.0

func (i PluginInstallReports) Less(lIdx, rIdx int) bool

func (PluginInstallReports) Swap added in v0.14.0

func (i PluginInstallReports) Swap(lIdx, rIdx int)

type PluginRemoveReport added in v0.14.0

type PluginRemoveReport struct {
	Image       *ociinstaller.SteampipeImageRef
	ShortName   string
	Connections []modconfig.Connection
}

type PluginRemoveReports added in v0.14.0

type PluginRemoveReports []PluginRemoveReport

func (PluginRemoveReports) Print added in v0.14.0

func (r PluginRemoveReports) Print()

Jump to

Keyboard shortcuts

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