cmd

package
v1.17.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff added in v1.17.0

func Diff(ctx context.Context, e Env, dir, name string, stderr io.Writer) error

func Do

func Do(args []string, stdin io.Reader, stdout io.Writer, stderr io.Writer) int

Do runs the command logic.

func Generate added in v1.0.0

func Generate(ctx context.Context, e Env, dir, filename string, stderr io.Writer) (map[string]string, error)

Types

type Env added in v1.4.0

type Env struct {
	ExperimentalFeatures bool
	DryRun               bool
}

func ParseEnv added in v1.4.0

func ParseEnv(c *cobra.Command) Env

func (*Env) Validate added in v1.17.0

func (e *Env) Validate(cfg *config.Config) error

Jump to

Keyboard shortcuts

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