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).
Click to show internal directories.
Click to hide internal directories.