cli

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP  = "Yo"
	VER  = "1.0.0"
	DESC = "Command-line YAML processor"
)
View Source
const (
	OPT_FROM_FILE = "f:from-file"
	OPT_NO_COLOR  = "nc:no-color"
	OPT_HELP      = "h:help"
	OPT_VER       = "v:version"

	OPT_VERB_VER     = "vv:verbose-version"
	OPT_COMPLETION   = "completion"
	OPT_GENERATE_MAN = "generate-man"
)

Variables

This section is empty.

Functions

func Run

func Run(gitRev string, gomod []byte)

Run is main application function

Types

type Query

type Query struct {
	Tokens     []Token
	Processors []string
}

type Range

type Range struct {
	Start int
	End   int
}

type Token

type Token struct {
	Key   string
	Index []int
	Range Range
}

func (Token) IsArrayToken

func (t Token) IsArrayToken() bool

IsArrayToken returns true if it array selector token

Jump to

Keyboard shortcuts

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