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 ¶
- func NewAPICommand(cfg *config.Config) *cobra.Command
- func NewAgentCommand(cfg *config.Config) *cobra.Command
- func NewCatalogCommand(cfg *config.Config) *cobra.Command
- func NewCompletionCommand() *cobra.Command
- func NewConfigCommand(cfg *config.Config) *cobra.Command
- func NewDoctorCommand(cfg *config.Config) *cobra.Command
- func NewHelperCommand(cfg *config.Config) *cobra.Command
- func NewPluginCommand(cfg *config.Config) *cobra.Command
- func NewRootCommand(cfg *config.Config, version, commit, date string) *cobra.Command
- func NewTUICommand(cfg *config.Config) *cobra.Command
- func NewUpgradeCommand(cfg *config.Config, currentVersion string) *cobra.Command
- func NewVersionCommand(version, commit, date string) *cobra.Command
- type AgentListItem
- type CatalogListItem
- type CheckResult
- type CheckStatus
- type GitHubAsset
- type GitHubRelease
- type VersionInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPICommand ¶
NewAPICommand creates the API documentation command group.
func NewAgentCommand ¶
NewAgentCommand creates the agent management command group.
func NewCatalogCommand ¶
NewCatalogCommand creates the catalog management command group.
func NewCompletionCommand ¶
NewCompletionCommand creates the completion command for generating shell completion scripts.
func NewConfigCommand ¶
NewConfigCommand creates the config management command group.
func NewDoctorCommand ¶
NewDoctorCommand creates the doctor command for system health checks.
func NewHelperCommand ¶
NewHelperCommand creates the helper management command group.
func NewPluginCommand ¶
NewPluginCommand creates the plugin management command group.
func NewRootCommand ¶
NewRootCommand creates the root command for agentmgr.
func NewTUICommand ¶
NewTUICommand creates the TUI launch command.
func NewUpgradeCommand ¶
NewUpgradeCommand creates the upgrade command for self-updating.
func NewVersionCommand ¶
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.