internal

package
v0.63.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JsonCompat added in v0.57.1

func JsonCompat(value any) any

JsonCompat takes a generic as returned from yaml.Unmarshal and returns a new instance with all map[any]any converted to map[string]any for compatiblilty with Apis that only support JSON generic objects. (Objects marshalled from json only support string keys).

func MultiSelect added in v0.54.0

func MultiSelect(msg string, options []string) ([]string, error)

func StringifySchema added in v0.56.0

func StringifySchema(value cue.Value) string

func ValidateAgainstSchema added in v0.56.0

func ValidateAgainstSchema(schema cue.Value, node *yaml.Node) error

Types

type IO

type IO struct {
	Out io.Writer
	Err io.Writer
	In  io.Reader
}

func IoFromCommand added in v0.35.0

func IoFromCommand(cmd *cobra.Command) IO

Jump to

Keyboard shortcuts

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