cmd

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 33 Imported by: 0

Documentation

Overview

Package cmd provides the command line interface logic for ask.

Index

Constants

View Source
const Version = "1.3.1"

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 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 SkillListItem added in v1.2.0

type SkillListItem struct {
	Name        string `json:"name"`
	Description string `json:"description,omitempty"`
	URL         string `json:"url,omitempty"`
	Scope       string `json:"scope"`
	Agent       string `json:"agent,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