cli

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version information - typically set via ldflags at build time
	Version   = "dev"
	GitCommit = "none"
	BuildDate = "unknown"
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type CLIProgressReporter

type CLIProgressReporter struct {
	// contains filtered or unexported fields
}

CLIProgressReporter implements progress reporting with progress bars.

func NewCLIProgressReporter

func NewCLIProgressReporter(quiet bool) *CLIProgressReporter

NewCLIProgressReporter creates a new CLI progress reporter.

func (*CLIProgressReporter) OnComplete

func (c *CLIProgressReporter) OnComplete(stats *indexer.ProcessingStats)

func (*CLIProgressReporter) OnDiscoveryComplete

func (c *CLIProgressReporter) OnDiscoveryComplete(codeFiles, docFiles int)

func (*CLIProgressReporter) OnDiscoveryStart

func (c *CLIProgressReporter) OnDiscoveryStart()

func (*CLIProgressReporter) OnEmbeddingProgress

func (c *CLIProgressReporter) OnEmbeddingProgress(processedChunks int)

func (*CLIProgressReporter) OnEmbeddingStart

func (c *CLIProgressReporter) OnEmbeddingStart(totalChunks int)

func (*CLIProgressReporter) OnFileProcessed

func (c *CLIProgressReporter) OnFileProcessed(fileName string)

func (*CLIProgressReporter) OnFileProcessingStart

func (c *CLIProgressReporter) OnFileProcessingStart(totalFiles int)

func (*CLIProgressReporter) OnWritingChunks

func (c *CLIProgressReporter) OnWritingChunks()

Jump to

Keyboard shortcuts

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