cmd

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 41 Imported by: 0

Documentation

Overview

Package cmd provides the command line interface logic for ask.

Index

Constants

View Source
const Version = "1.9.9"

Version is the current version of the application

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.

func ExecuteGUI added in v1.3.0

func ExecuteGUI()

ExecuteGUI starts the GUI application

Types

type AuditReport added in v1.7.5

type AuditReport struct {
	GeneratedAt   time.Time         `json:"generated_at"`
	Version       string            `json:"version"`
	TotalSkills   int               `json:"total_skills"`
	TotalFindings int               `json:"total_findings"`
	CriticalCount int               `json:"critical_count"`
	WarningCount  int               `json:"warning_count"`
	InfoCount     int               `json:"info_count"`
	Skills        []AuditSkillEntry `json:"skills"`
}

AuditReport represents the full audit report

type AuditSkillEntry added in v1.7.5

type AuditSkillEntry struct {
	Name        string          `json:"name"`
	URL         string          `json:"url,omitempty"`
	Version     string          `json:"version,omitempty"`
	Commit      string          `json:"commit,omitempty"`
	InstalledAt string          `json:"installed_at,omitempty"`
	Source      string          `json:"source,omitempty"`
	Findings    []skill.Finding `json:"findings,omitempty"`
	Status      string          `json:"status"` // "clean", "warning", "critical"
}

AuditSkillEntry represents one skill in the audit

type AvailableSkills added in v1.6.0

type AvailableSkills struct {
	XMLName xml.Name     `xml:"available_skills"`
	Skills  []SkillEntry `xml:"skill"`
}

AvailableSkills represents the XML structure for agent prompt integration

type BatchScoreResult added in v1.7.8

type BatchScoreResult struct {
	Source string              `json:"source"`
	Total  int                 `json:"total"`
	Scores []skill.ScoreResult `json:"scores"`
	Stats  BatchStats          `json:"stats"`
}

BatchScoreResult holds results for batch scoring

type BatchStats added in v1.7.8

type BatchStats struct {
	Average float64        `json:"average"`
	Grades  map[string]int `json:"grades"`
}

BatchStats summarizes batch scoring statistics

type CheckItem added in v1.2.0

type CheckItem struct {
	Name    string `json:"name"`
	Status  string `json:"status"` // "ok", "warning", "error"
	Message string `json:"message"`
}

CheckItem represents a single check result

type DoctorReport added in v1.2.0

type DoctorReport struct {
	Version string         `json:"version"`
	Results []DoctorResult `json:"results"`
	Summary DoctorSummary  `json:"summary"`
}

DoctorReport represents the complete health check report

type DoctorResult added in v1.2.0

type DoctorResult struct {
	Category string      `json:"category"`
	Status   string      `json:"status"` // "ok", "warning", "error"
	Message  string      `json:"message"`
	Details  []string    `json:"details,omitempty"`
	Children []CheckItem `json:"children,omitempty"`
}

DoctorResult represents the result of a health check

type DoctorSummary added in v1.2.0

type DoctorSummary struct {
	TotalChecks   int `json:"total_checks"`
	PassedChecks  int `json:"passed_checks"`
	WarningChecks int `json:"warning_checks"`
	FailedChecks  int `json:"failed_checks"`
}

DoctorSummary provides overall statistics

type SkillEntry added in v1.6.0

type SkillEntry struct {
	Name        string `xml:"name"`
	Description string `xml:"description"`
	Location    string `xml:"location"`
}

SkillEntry represents a single skill in the XML output

type SkillListItem added in v1.2.0

type SkillListItem struct {
	Name        string   `json:"name"`
	Version     string   `json:"version,omitempty"`
	Description string   `json:"description,omitempty"`
	URL         string   `json:"url,omitempty"`
	Scope       string   `json:"scope"`
	Agent       string   `json:"agent,omitempty"`
	Agents      []string `json:"agents,omitempty"`
	Path        string   `json:"path,omitempty"`
}

SkillListItem represents a skill in the list output

Jump to

Keyboard shortcuts

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