Documentation
¶
Overview ¶
Package commands implements all ds CLI subcommands.
Index ¶
- func NewCaptureCmd() *cobra.Command
- func NewConfigCmd() *cobra.Command
- func NewContextCmd() *cobra.Command
- func NewCriteriaCmd() *cobra.Command
- func NewEvalCmd() *cobra.Command
- func NewFindCmd() *cobra.Command
- func NewInitCmd() *cobra.Command
- func NewLinkCmd() *cobra.Command
- func NewListCmd() *cobra.Command
- func NewMapCmd() *cobra.Command
- func NewResolveCmd() *cobra.Command
- func NewResumeCmd() *cobra.Command
- func NewScanCmd() *cobra.Command
- func NewShowCmd() *cobra.Command
- func NewStatusCmd() *cobra.Command
- func NewTLDRCmd() *cobra.Command
- func NewTagCmd() *cobra.Command
- func NewTaskCmd() *cobra.Command
- func NewTodosCmd() *cobra.Command
- func NewUntagCmd() *cobra.Command
- func NewVersionCmd() *cobra.Command
- type FindGitReceipt
- type FindGitTrustContext
- type FindGraphCandidate
- type FindGraphDiagnostics
- type FindGraphOutput
- type FindGraphPackContext
- type FindGraphPackGroup
- type FindGraphSuppression
- type FindPackOutput
- type FindRelatedTestContext
- type FindRelatedTestReceipt
- type FindResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCaptureCmd ¶
NewCaptureCmd creates the ds capture command.
func NewConfigCmd ¶
NewConfigCmd creates the ds config command group.
func NewContextCmd ¶
NewContextCmd creates the ds context command.
func NewCriteriaCmd ¶
NewCriteriaCmd creates the ds criteria command.
func NewEvalCmd ¶ added in v0.1.0
NewEvalCmd creates the ds eval command.
func NewResolveCmd ¶
NewResolveCmd creates the ds resolve command.
func NewTLDRCmd ¶ added in v1.0.0
NewTLDRCmd creates the ds tldr command.
func NewTaskCmd ¶ added in v1.0.0
NewTaskCmd creates the ds task command group.
func NewVersionCmd ¶
NewVersionCmd creates the ds version subcommand with --json support.
Types ¶
type FindGitReceipt ¶ added in v0.1.0
type FindGitReceipt struct {
SHA string `json:"sha"`
ShortSHA string `json:"short_sha"`
CommittedAt string `json:"committed_at,omitempty"`
Subject string `json:"subject"`
Detail string `json:"detail,omitempty"`
MatchedPaths []string `json:"matched_paths,omitempty"`
RelatedPaths []string `json:"related_paths,omitempty"`
MatchedTerms []string `json:"matched_terms,omitempty"`
Signals []string `json:"signals,omitempty"`
Score int `json:"score,omitempty"`
}
type FindGitTrustContext ¶ added in v0.1.0
type FindGitTrustContext struct {
Mode string `json:"mode"`
PathCount int `json:"path_count"`
CommitsRead int `json:"commits_read"`
Receipts []FindGitReceipt `json:"receipts,omitempty"`
}
type FindGraphCandidate ¶ added in v0.1.0
type FindGraphCandidate struct {
ID string `json:"id,omitempty"`
ShortID string `json:"short_id,omitempty"`
Path string `json:"path,omitempty"`
SourcePath string `json:"source_path,omitempty"`
Kind string `json:"kind,omitempty"`
Subtype string `json:"subtype,omitempty"`
Title string `json:"title,omitempty"`
Role string `json:"role,omitempty"`
RoleReason string `json:"role_reason,omitempty"`
SeedPath string `json:"seed_path,omitempty"`
AdmissionEdgeType string `json:"admission_edge_type"`
Confidence float64 `json:"confidence"`
Weight float64 `json:"weight,omitempty"`
SourceSignal string `json:"source_signal,omitempty"`
CompanionDerived bool `json:"companion_derived,omitempty"`
Receipt string `json:"receipt"`
SupportReceipts []string `json:"support_receipts,omitempty"`
}
type FindGraphDiagnostics ¶ added in v0.1.0
type FindGraphDiagnostics struct {
Mode string `json:"mode"`
SeedCount int `json:"seed_count"`
CandidateCount int `json:"candidate_count"`
SuppressedCount int `json:"suppressed_count,omitempty"`
Counts map[string]int `json:"counts,omitempty"`
Candidates []FindGraphCandidate `json:"candidates,omitempty"`
Suppressed []FindGraphSuppression `json:"suppressed,omitempty"`
Notes []string `json:"notes,omitempty"`
}
type FindGraphOutput ¶ added in v0.1.0
type FindGraphOutput struct {
Query string `json:"query"`
Retriever string `json:"retriever"`
Mode string `json:"mode"`
RankedResults []FindResult `json:"ranked_results"`
GraphDiagnostics FindGraphDiagnostics `json:"graph_diagnostics"`
}
type FindGraphPackContext ¶ added in v0.1.0
type FindGraphPackContext struct {
Mode string `json:"mode"`
EvidenceMode string `json:"evidence_mode"`
Title string `json:"title"`
CandidateCount int `json:"candidate_count"`
SuppressedCount int `json:"suppressed_count,omitempty"`
Counts map[string]int `json:"counts,omitempty"`
Groups []FindGraphPackGroup `json:"groups,omitempty"`
Notes []string `json:"notes,omitempty"`
}
type FindGraphPackGroup ¶ added in v0.1.0
type FindGraphPackGroup struct {
Role string `json:"role"`
Title string `json:"title"`
Items []FindGraphCandidate `json:"items"`
}
type FindGraphSuppression ¶ added in v0.1.0
type FindPackOutput ¶ added in v0.1.0
type FindPackOutput struct {
Query string `json:"query"`
Retriever string `json:"retriever"`
Mode string `json:"mode"`
ScoutMode string `json:"scout_mode,omitempty"`
ScoutWarnings []string `json:"scout_warnings,omitempty"`
Summary retrieval.PackSummary `json:"summary,omitempty"`
LocalLanguage []string `json:"local_language,omitempty"`
Groups []retrieval.PackGroup `json:"groups"`
ExcludedNoise []retrieval.PackItem `json:"excluded_noise,omitempty"`
Counts map[string]int `json:"counts,omitempty"`
RankedResults []FindResult `json:"ranked_results"`
RelatedTests *FindRelatedTestContext `json:"related_tests,omitempty"`
GitTrust *FindGitTrustContext `json:"git_trust,omitempty"`
GraphContext *FindGraphPackContext `json:"graph_context,omitempty"`
GraphDiagnostics *FindGraphDiagnostics `json:"graph_diagnostics,omitempty"`
}
type FindRelatedTestContext ¶ added in v1.0.0
type FindRelatedTestContext struct {
Mode string `json:"mode"`
Count int `json:"count"`
Items []FindRelatedTestReceipt `json:"items,omitempty"`
}
type FindRelatedTestReceipt ¶ added in v1.0.0
type FindRelatedTestReceipt struct {
Path string `json:"path"`
Kind string `json:"kind,omitempty"`
Score float64 `json:"score,omitempty"`
Reasons []string `json:"reasons,omitempty"`
SourcePaths []string `json:"source_paths,omitempty"`
SourceRole string `json:"source_role,omitempty"`
TestNames []string `json:"test_names,omitempty"`
}
type FindResult ¶ added in v0.1.0
type FindResult struct {
ID string `json:"ID"`
RepoID string `json:"RepoID"`
ShortID string `json:"ShortID"`
Path string `json:"path,omitempty"`
Kind string `json:"Kind"`
Subtype string `json:"Subtype"`
Title string `json:"Title"`
Status string `json:"Status"`
CurrentRevID string `json:"CurrentRevID"`
CreatedAt string `json:"CreatedAt"`
UpdatedAt string `json:"UpdatedAt"`
LastObservedAt string `json:"LastObservedAt"`
SourcePath string `json:"source_path,omitempty"`
Retriever string `json:"retriever"`
AuthorityCues []string `json:"authority_cues,omitempty"`
Reasons []string `json:"reasons,omitempty"`
Metadata map[string]string `json:"metadata,omitempty"`
}
Source Files
¶
- capture.go
- config.go
- context.go
- criteria.go
- eval.go
- eval_first_index.go
- find.go
- find_git_receipts.go
- find_graph_diagnostics.go
- find_graph_pack.go
- find_pack.go
- find_pack_assembly.go
- find_pack_companions.go
- find_pack_presentation.go
- find_pack_scout.go
- find_pack_scout_evidence.go
- find_source_manifest.go
- find_source_manifest_consumption.go
- find_source_manifest_recovery.go
- find_source_pack_mode.go
- find_source_test_receipts.go
- init.go
- link.go
- list.go
- map.go
- refresh.go
- resolve.go
- resume.go
- retrieval_bridge.go
- scan.go
- show.go
- status.go
- tag.go
- task.go
- task_evaluate.go
- tldr.go
- todos.go
- version.go
Click to show internal directories.
Click to hide internal directories.