agent

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package agent provides the command to set agent configurations.

Index

Constants

View Source
const (
	// MaxCompletionResults is the maximum number of completion results to return.
	MaxCompletionResults = 20
)

Variables

View Source
var (
	// ErrCommandExecutionFailed is returned when the command execution fails.
	ErrCommandExecutionFailed = errors.New("command execution failed")
)

Functions

func NewCommand

func NewCommand(options CommandOptions) *cobra.Command

NewCommand creates a new set agent command.

Types

type CommandOptions

type CommandOptions struct {
	*config.GlobalConfig
	// contains filtered or unexported fields
}

CommandOptions contains the options for the set agent command.

func (*CommandOptions) Prepare

func (opts *CommandOptions) Prepare(*cobra.Command, []string) error

Prepare prepares the command for execution.

func (*CommandOptions) ValidArgsFunction added in v0.1.25

func (opts *CommandOptions) ValidArgsFunction(
	cmd *cobra.Command, args []string, toComplete string,
) ([]string, cobra.ShellCompDirective)

ValidArgsFunction provides dynamic completion for agent instance UIDs. Only completes the first argument (agent instance UID).

Jump to

Keyboard shortcuts

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