Documentation
¶
Index ¶
- func BoldBlue(s string) string
- func BoldGreen(s string) string
- func BoldRed(s string) string
- func BoldYellow(s string) string
- func GetClient(shell *ishell.Context) *client.ClientSet
- func GetConfigDir(homeDir string) (string, error)
- func Init() error
- func SetCfg(shell *ishell.Shell, cfg *Config)
- func SetClient(shell *ishell.Shell, client *client.ClientSet)
- func SetHistoryPath(homeDir string, shell *ishell.Shell)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoldYellow ¶
func GetConfigDir ¶
func SetHistoryPath ¶
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 (*Config) Client ¶
func (c *Config) Client() *kagentclient.ClientSet
Click to show internal directories.
Click to hide internal directories.