prompt

package
v0.0.0-...-2362332 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: EPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultFormat = `{{if .Enabled}}(K8S {{.Ctx | Yellow | Bold}}|{{.Ns | Magenta | Bold}}){{end}}`

DefaultFormat Default print format

View Source
var TEMPLATE = template.New("prompt").Funcs(funcMap)

TEMPLATE Default template used to render k8s data

Functions

func Run

func Run(tempConfig bool, check bool, format string, userFormat bool)

Run CLI entry point

Types

type KubeData

type KubeData struct {
	Ctx, Ns string
	Enabled bool
}

KubeData holds k8s data to render the template

Jump to

Keyboard shortcuts

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