cmd

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context) error

Types

type Eval

type Eval struct {
	cli.Name `args:"CUE_FILES..." desc:"evalWithPatches files"`
	EvalFlags
}

func (*Eval) Run

func (opts *Eval) Run(ctx context.Context, args []string) error

type EvalFlags

type EvalFlags struct {
	Output string `flag:"output,o" desc:"output filename and fmt"`
	Write  bool   `flag:"write,w" desc:"write"`
}

type Fmt

type Fmt struct {
	cli.Name `args:"BASE_DIR" desc:"base dir for files fmt"`
	format.FormatOpts
}

func (*Fmt) Run

func (opts *Fmt) Run(ctx context.Context, args []string) error

type Gen added in v0.6.0

type Gen struct {
	cli.Name `args:"PATH" desc:"source path"`
	Output   string `flag:"output,o" desc:"generate output"`
	Import   string `flag:"import,i" desc:"declare language for generate. support values: crd | go"`
}

func (*Gen) Run added in v0.6.0

func (o *Gen) Run(ctx context.Context, args []string) error

type Get

type Get struct {
	cli.Name `args:"IMPORT_PATH..." desc:"download dependencies"`
	Upgrade  bool   `flag:"upgrade,u" desc:"upgrade dependencies"`
	Import   string `flag:"import,i" desc:"declare language for generate. support values: crd | go"`
}

func (*Get) Run

func (o *Get) Run(ctx context.Context, args []string) error

type ProjectFlags

type ProjectFlags struct {
	Root string `flag:"!project,p" desc:"project root"`
	V    int    `flag:"!verbose,v" desc:"verbose level"`
}

func (ProjectFlags) PreRun

func (v ProjectFlags) PreRun(ctx context.Context) context.Context

Jump to

Keyboard shortcuts

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