display

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResultError  error
	ResultString string
)

Functions

func ExitError

func ExitError(message string, params ...any)

func ExitWarning

func ExitWarning(message string, params ...any)

func OutputObject

func OutputObject(value map[string]any, serviceName, templateContent string, outputFormat *OutputFormat)

func Outputf added in v0.2.0

func Outputf(message string, params ...any)

func RenderConfigTable

func RenderConfigTable(cfg *ini.File)

func RenderTable

func RenderTable(values []map[string]any, columnsToDisplay []string, outputFormat *OutputFormat)

func RunGenericChoicePicker

func RunGenericChoicePicker(question string, choices map[string]string, overrideHeight int) (string, string, error)

func RunLoginInput

func RunLoginInput(customEndpoint bool) map[string]string

func RunLoginPicker

func RunLoginPicker(question string, choices []string) string

Types

type OutputFormat

type OutputFormat struct {
	JsonOutput, YamlOutput, InteractiveOutput bool
	CustomFormat                              string
}

// Common flags used by all subcommands to control output format (json, yaml)

Jump to

Keyboard shortcuts

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