cli

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoStdin = errors.New(`stdin is missing. Please pass the result of "terraform version -json" to stdin`)

Functions

This section is empty.

Types

type Env added in v0.1.1

type Env struct {
	Config     string
	ConfigBody string
}

type LDFlags

type LDFlags struct {
	Version string
	Commit  string
	Date    string
}

func (*LDFlags) VersionString

func (l *LDFlags) VersionString() string

type Runner

type Runner struct {
	Stdin      io.Reader
	Stdout     io.Writer
	Stderr     io.Writer
	LDFlags    *LDFlags
	LogE       *logrus.Entry
	Env        *Env
	IsTerminal bool
}

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, args ...string) error

Jump to

Keyboard shortcuts

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