tui

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextSelect

func ContextSelect(contexts []Context) *promptui.Select

ContextSelect will show a series of contexts stored. To display the content of the struct, the usual dot notation is used inside the templates to select the fields and color them.

Types

type Context

type Context struct {
	Name    string
	Cluster string
	Auth    string
}

Context contains basic information about a kubernetes context.

Jump to

Keyboard shortcuts

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