cmd

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 250 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Command

type Command struct {
	*cobra.Command
	// contains filtered or unexported fields
}

Command represents an invocation of the CLI.

func NewCommand

func NewCommand(opts ...Option) *Command

NewCommand returns a Command object representing an invocation of the CLI.

type Option added in v0.0.3

type Option func(*Command)

Option is a function that configures a Command.

func WithStreams added in v0.0.3

func WithStreams(out, err io.Writer) Option

WithStreams overrides the default writer.

type ToolsFile added in v0.0.4

type ToolsFile struct {
	Sources         server.SourceConfigs         `yaml:"sources"`
	AuthSources     server.AuthServiceConfigs    `yaml:"authSources"` // Deprecated: Kept for compatibility.
	AuthServices    server.AuthServiceConfigs    `yaml:"authServices"`
	EmbeddingModels server.EmbeddingModelConfigs `yaml:"embeddingModels"`
	Tools           server.ToolConfigs           `yaml:"tools"`
	Toolsets        server.ToolsetConfigs        `yaml:"toolsets"`
	Prompts         server.PromptConfigs         `yaml:"prompts"`
}

Jump to

Keyboard shortcuts

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