commands

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2025 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "llm-support",
	Short: "LLM-focused codebase analysis and transformation tools",
	Long: `llm-support provides 32+ specialized commands for working with
code, configuration files, and documentation in LLM-assisted workflows.

Designed for fast startup (10-20x faster than Python), single binary
distribution, and integration with Claude, Gemini, and Qwen prompts.`,
	Version: Version,
}

RootCmd is the base command when called without any subcommands

View Source
var Version = "1.0.0"

Version is set at build time via ldflags

Functions

func Execute

func Execute()

Execute runs the root command

Types

type Dependency

type Dependency struct {
	Name    string `json:"name"`
	Version string `json:"version"`
	Type    string `json:"type"` // prod, dev, optional
}

Dependency represents a single dependency with its version

type DepsResult

type DepsResult struct {
	Manifest     string       `json:"manifest"`
	ManifestType string       `json:"manifest_type"`
	Dependencies []Dependency `json:"dependencies"`
}

DepsResult holds the parsed dependencies

type ExtractRelevantResult

type ExtractRelevantResult struct {
	Path            string   `json:"path"`
	Context         string   `json:"context"`
	ExtractedParts  []string `json:"extracted_parts"`
	TotalFiles      int      `json:"total_files,omitempty"`
	ProcessedFiles  int      `json:"processed_files,omitempty"`
	Error           string   `json:"error,omitempty"`
	ProcessingTimeS float64  `json:"processing_time_s,omitempty"`
}

ExtractRelevantResult holds the extraction result

type FileStatus

type FileStatus struct {
	Path   string `json:"path"`
	Exists bool   `json:"exists"`
}

FileStatus represents the status of a required/optional file

type ForeachFileRes

type ForeachFileRes struct {
	InputFile  string `json:"input_file"`
	OutputFile string `json:"output_file,omitempty"`
	Status     string `json:"status"` // success, skipped, failed
	Error      string `json:"error,omitempty"`
}

ForeachFileRes holds the result for a single file

type ForeachResult

type ForeachResult struct {
	TotalFiles     int              `json:"total_files"`
	ProcessedFiles int              `json:"processed_files"`
	SkippedFiles   int              `json:"skipped_files"`
	FailedFiles    int              `json:"failed_files"`
	Results        []ForeachFileRes `json:"results,omitempty"`
	ProcessingTime float64          `json:"processing_time_s"`
}

ForeachResult holds the result of processing files

type GitBranch

type GitBranch struct {
	Current  string `json:"current"`
	Tracking string `json:"tracking,omitempty"`
}

GitBranch holds branch information

type GitCommit

type GitCommit struct {
	SHA     string `json:"sha"`
	Author  string `json:"author"`
	Date    string `json:"date"`
	Message string `json:"message"`
}

GitCommit holds commit information

type GitContext

type GitContext struct {
	Repository GitRepository `json:"repository"`
	Branch     GitBranch     `json:"branch"`
	Status     GitStatus     `json:"status"`
	Commits    []GitCommit   `json:"commits,omitempty"`
	Remotes    []GitRemote   `json:"remotes,omitempty"`
	Diff       string        `json:"diff,omitempty"`
}

GitContext holds the gathered git repository information

type GitRemote

type GitRemote struct {
	Name     string `json:"name"`
	FetchURL string `json:"fetch_url"`
	PushURL  string `json:"push_url"`
}

GitRemote holds remote information

type GitRepository

type GitRepository struct {
	Path string `json:"path"`
	Root string `json:"root"`
}

GitRepository holds repository path info

type GitStatus

type GitStatus struct {
	Clean     bool `json:"clean"`
	Modified  int  `json:"modified"`
	Added     int  `json:"added"`
	Deleted   int  `json:"deleted"`
	Untracked int  `json:"untracked"`
	Conflict  bool `json:"conflict"`
}

GitStatus holds working tree status

type PlanValidationResult

type PlanValidationResult struct {
	Path          string            `json:"path"`
	Valid         bool              `json:"valid"`
	RequiredFiles []FileStatus      `json:"required_files"`
	OptionalFiles []FileStatus      `json:"optional_files"`
	Warnings      []string          `json:"warnings,omitempty"`
	Errors        []string          `json:"errors,omitempty"`
	Metadata      map[string]string `json:"metadata,omitempty"`
}

PlanValidationResult holds the validation results

Jump to

Keyboard shortcuts

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