Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrOddInputFiles = errors.New("odd number of file arguments received; must be given in pairs") ErrOddInputFilesStdin = errors.New(ErrOddInputFiles.Error() + " (ensure final item has terminating newline or NUL)") ErrNoInputFiles = errors.New("at least one input-output pair must be given") ErrEncounteredErrors = errors.New("encountered errors during processing; failing") )
Functions ¶
This section is empty.
Types ¶
type Flags ¶
type Flags struct { Args []string // The positional arguments. DryRun bool FromStdin bool Zero bool HelpRequested bool // Parsed --jpath values (in given order) // prefixed with JSONNET_PATH environment variable values in reverse order. // Same behavior as official jsonnet tool. JPaths []string }
Flags are the command-line flags jty supports.
func (*Flags) AddToFlagSet ¶
AddToFlagSet associates f with the given FlagSet.
func (*Flags) FinishParse ¶
FinishParse sets any default values that are implied by another option, and parses any supplied environment values.
jsonnetPathEnv is the value of environment variable JSONNET_PATH.
type Processor ¶
type Processor struct { // If not nil, Processor will operate in dry run mode and write messages here. // Must be set before any calls to Process. DryRunDest io.Writer // contains filtered or unexported fields }
Processor handles concurrent requests to process input Jsonnet files and save their output as YAML.
func NewProcessor ¶
NewProcessor returns a new Processor that has ioWorkers goroutines to handle reading input files and another ioWorkers goroutines to handle writing output files.
Click to show internal directories.
Click to hide internal directories.