Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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
var Version = "1.0.0"
Version is set at build time via ldflags
Functions ¶
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 ¶
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 ¶
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
Source Files
¶
- analyze_deps.go
- args.go
- catfiles.go
- count.go
- deps.go
- detect.go
- diff.go
- discover_tests.go
- encode.go
- extract.go
- extract_relevant.go
- foreach.go
- git_context.go
- grep.go
- hash.go
- init_temp.go
- json.go
- listdir.go
- markdown.go
- math.go
- multiexists.go
- multigrep.go
- partition_work.go
- prompt.go
- repo_root.go
- report.go
- root.go
- stats.go
- summarize_dir.go
- template.go
- toml.go
- transform.go
- tree.go
- validate.go
- validate_plan.go