cli

package
v1.0.23 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Package cli implements the command-line interface for AgentManager.

Package cli implements the command-line interface for AgentManager.

Package cli implements the command-line interface for AgentManager.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPICommand

func NewAPICommand(cfg *config.Config) *cobra.Command

NewAPICommand creates the API documentation command group.

func NewAgentCommand

func NewAgentCommand(cfg *config.Config) *cobra.Command

NewAgentCommand creates the agent management command group.

func NewCatalogCommand

func NewCatalogCommand(cfg *config.Config) *cobra.Command

NewCatalogCommand creates the catalog management command group.

func NewCompletionCommand

func NewCompletionCommand() *cobra.Command

NewCompletionCommand creates the completion command for generating shell completion scripts.

func NewConfigCommand

func NewConfigCommand(cfg *config.Config) *cobra.Command

NewConfigCommand creates the config management command group.

func NewDoctorCommand

func NewDoctorCommand(cfg *config.Config) *cobra.Command

NewDoctorCommand creates the doctor command for system health checks.

func NewHelperCommand

func NewHelperCommand(cfg *config.Config) *cobra.Command

NewHelperCommand creates the helper management command group.

func NewPluginCommand

func NewPluginCommand(cfg *config.Config) *cobra.Command

NewPluginCommand creates the plugin management command group.

func NewRootCommand

func NewRootCommand(cfg *config.Config, version, commit, date string) *cobra.Command

NewRootCommand creates the root command for agentmgr.

func NewTUICommand

func NewTUICommand(cfg *config.Config) *cobra.Command

NewTUICommand creates the TUI launch command.

func NewUpgradeCommand

func NewUpgradeCommand(cfg *config.Config, currentVersion string) *cobra.Command

NewUpgradeCommand creates the upgrade command for self-updating.

func NewVersionCommand

func NewVersionCommand(version, commit, date string) *cobra.Command

NewVersionCommand creates the version command.

Types

type AgentListItem

type AgentListItem struct {
	ID            string `json:"id"`
	Name          string `json:"name"`
	Method        string `json:"method"`
	Version       string `json:"version"`
	LatestVersion string `json:"latest_version,omitempty"`
	HasUpdate     bool   `json:"has_update"`
	Path          string `json:"path"`
	Status        string `json:"status"`
	Healthy       *bool  `json:"healthy,omitempty"`
	HealthError   string `json:"health_error,omitempty"`
}

AgentListItem represents an agent in the list output.

type CatalogListItem

type CatalogListItem struct {
	ID          string   `json:"id"`
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Methods     []string `json:"methods"`
}

CatalogListItem represents an agent in the catalog list output.

type CheckResult

type CheckResult struct {
	Name    string
	Status  CheckStatus
	Message string
	Fix     string
}

CheckResult represents the result of a health check.

type CheckStatus

type CheckStatus int

CheckStatus represents the status of a check.

const (
	CheckOK CheckStatus = iota
	CheckWarning
	CheckError
	CheckSkipped
)

type GitHubAsset

type GitHubAsset struct {
	Name               string `json:"name"`
	BrowserDownloadURL string `json:"browser_download_url"`
	Size               int64  `json:"size"`
}

GitHubAsset represents a release asset.

type GitHubRelease

type GitHubRelease struct {
	TagName     string        `json:"tag_name"`
	Name        string        `json:"name"`
	Body        string        `json:"body"`
	PublishedAt string        `json:"published_at"`
	Assets      []GitHubAsset `json:"assets"`
	HTMLURL     string        `json:"html_url"`
}

GitHubRelease represents a GitHub release.

type VersionInfo

type VersionInfo struct {
	Version   string `json:"version"`
	Commit    string `json:"commit"`
	BuildDate string `json:"build_date"`
	GoVersion string `json:"go_version"`
	Platform  string `json:"platform"`
}

VersionInfo contains version information.

Directories

Path Synopsis
Package output provides CLI output utilities with color support.
Package output provides CLI output utilities with color support.

Jump to

Keyboard shortcuts

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