options

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunOptions

type RunOptions struct {
	// InputPath is the -f flag
	InputPath string
	// OutputPath is the -o flag
	OutputPath string
	// Environment variable example (PATH)
	PathEnvVar string
	// Environment map from KCL option("env")
	EnvMap map[string]string
}

RunOptions is the options for the run command

func NewRunOptions

func NewRunOptions() *RunOptions

RunOptions creates a new options for the run command.

func (*RunOptions) Run

func (o *RunOptions) Run() error

Run the with the run command options.

Jump to

Keyboard shortcuts

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