cli

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorHandler

func ErrorHandler(w io.Writer, styles fang.Styles, err error)

func NewRootCmd

func NewRootCmd() *cobra.Command

func NewRunCmd

func NewRunCmd(ra *RunArgs) *cobra.Command

Types

type RootArgs

type RootArgs struct {
	LogLevel  string
	LogFormat string
}

func NewRootArgs

func NewRootArgs() *RootArgs

func (*RootArgs) AddFlags

func (ra *RootArgs) AddFlags(cmd *cobra.Command)

type RunArgs

type RunArgs struct {
	*RootArgs

	Path             string
	StdinData        []byte
	ConfigPath       string
	CommandOrProfile string
	Args             []string
	Watch            bool
	WriteConfig      bool
	ShowConfig       bool
}

func NewRunArgs

func NewRunArgs(rootArgs *RootArgs) *RunArgs

func (*RunArgs) AddFlags

func (ra *RunArgs) AddFlags(cmd *cobra.Command)

Jump to

Keyboard shortcuts

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