config

package
v0.0.0-...-8f1971e Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoldBlue

func BoldBlue(s string) string

func BoldGreen

func BoldGreen(s string) string

func BoldRed

func BoldRed(s string) string

func BoldYellow

func BoldYellow(s string) string

func GetClient

func GetClient(shell *ishell.Context) *client.ClientSet

func GetConfigDir

func GetConfigDir(homeDir string) (string, error)

func Init

func Init() error

func SetCfg

func SetCfg(shell *ishell.Shell, cfg *Config)

func SetClient

func SetClient(shell *ishell.Shell, client *client.ClientSet)

func SetHistoryPath

func SetHistoryPath(homeDir string, shell *ishell.Shell)

Types

type Config

type Config struct {
	KAgentURL    string        `mapstructure:"kagent_url"`
	Namespace    string        `mapstructure:"namespace"`
	OutputFormat string        `mapstructure:"output_format"`
	Verbose      bool          `mapstructure:"verbose"`
	Timeout      time.Duration `mapstructure:"timeout"`
}

func Get

func Get() (*Config, error)

func GetCfg

func GetCfg(shell *ishell.Context) *Config

func (*Config) Client

func (c *Config) Client() *kagentclient.ClientSet

Jump to

Keyboard shortcuts

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