cmd

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func NewRootCmd added in v0.3.0

func NewRootCmd(out io.Writer) *cobra.Command

NewRootCmd returns a root command with all subcommands registered. Passing a non-nil out wires it as the default output writer, enabling test code to capture output without mutating os.Stdout.

Types

type Agent

type Agent = agents.Agent

Agent and registry helpers re-exported from the shared agents package for use within the cmd package.

type OutputFormat added in v0.12.0

type OutputFormat int

OutputFormat represents the output format for a command.

const (
	// OutputFormatJSON emits JSON output.
	OutputFormatJSON OutputFormat = iota
	// OutputFormatMarkdown emits Markdown output.
	OutputFormatMarkdown
)

type TrendEntry

type TrendEntry struct {
	Skill    string `json:"skill"`
	OldDate  string `json:"old_date"`
	NewDate  string `json:"new_date"`
	OldScore int    `json:"old_score"`
	NewScore int    `json:"new_score"`
	OldGrade string `json:"old_grade"`
	NewGrade string `json:"new_grade"`
	Delta    int    `json:"delta"`
	Trend    string `json:"trend"` // "↑", "↓", "—"
}

TrendEntry holds the computed trend for a single skill.

Jump to

Keyboard shortcuts

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