cli

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColorSchemeFunc added in v0.22.0

func ColorSchemeFunc(c lipgloss.LightDarkFunc) fang.ColorScheme

Try to get the theme from the config, otherwise use the default color scheme.

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

func ThemeColorScheme added in v0.22.0

func ThemeColorScheme(t *theme.Theme, c lipgloss.LightDarkFunc) fang.ColorScheme

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
	ConfigPath       string
	CommandOrProfile string
	ServeMCP         string
	TracingEndpoint  string
	Args             []string
	StdinData        []byte
	Watch            bool
	WriteConfig      bool
	ShowConfig       bool
	Trust            bool
	NoTrust          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