commands

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Global output flags accessible to all commands
	GlobalJSONOutput bool
	GlobalMinOutput  bool
)

Functions

func RegisterAllChunkers added in v1.6.0

func RegisterAllChunkers(factory *semantic.ChunkerFactory)

RegisterAllChunkers registers all supported language chunkers with the factory. This is a shared function used by both index and index-update commands.

func ResetGlobalsForTesting added in v1.6.0

func ResetGlobalsForTesting()

ResetGlobalsForTesting resets all global variables to their default values. Useful in TestMain or test teardown.

func RootCmd

func RootCmd() *cobra.Command

RootCmd returns the root command for llm-semantic

func SetAPIURLForTesting added in v1.6.0

func SetAPIURLForTesting(newURL string) func()

SetAPIURLForTesting sets the API URL and returns a cleanup function.

func SetCollectionNameForTesting added in v1.6.0

func SetCollectionNameForTesting(newName string) func()

SetCollectionNameForTesting sets the collection name and returns a cleanup function.

func SetConfigForTesting added in v1.6.0

func SetConfigForTesting(cfg *config.SemanticConfig) func()

SetConfigForTesting sets the loaded config and returns a cleanup function.

func SetEmbedderTypeForTesting added in v1.6.0

func SetEmbedderTypeForTesting(newType string) func()

SetEmbedderTypeForTesting sets the embedder type and returns a cleanup function.

func SetStorageTypeForTesting added in v1.6.0

func SetStorageTypeForTesting(newType string) func()

SetStorageTypeForTesting sets the storage type and returns a cleanup function that restores the original value. Use with defer in tests:

cleanup := commands.SetStorageTypeForTesting("qdrant")
defer cleanup()

Types

type ClarificationEntry added in v1.6.0

type ClarificationEntry struct {
	ID                string   `yaml:"id"`
	CanonicalQuestion string   `yaml:"canonical_question"`
	CurrentAnswer     string   `yaml:"current_answer"`
	ContextTags       []string `yaml:"context_tags"`
	SprintID          string   `yaml:"sprint_id"`
	Occurrences       int      `yaml:"occurrences"`
	Status            string   `yaml:"status"`
	CreatedAt         string   `yaml:"created_at"`
	UpdatedAt         string   `yaml:"updated_at"`
}

ClarificationEntry represents an entry in clarification-tracking.yaml

type ClarificationFile added in v1.6.0

type ClarificationFile struct {
	Entries []ClarificationEntry `yaml:"entries"`
}

ClarificationFile represents the structure of clarification-tracking.yaml

Jump to

Keyboard shortcuts

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