filtervariants

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectType

type ProjectType string
const (
	ProjectGo      ProjectType = "go"
	ProjectRust    ProjectType = "rust"
	ProjectNode    ProjectType = "node"
	ProjectPython  ProjectType = "python"
	ProjectRuby    ProjectType = "ruby"
	ProjectJava    ProjectType = "java"
	ProjectUnknown ProjectType = "unknown"
)

type Variant

type Variant struct {
	Name           string
	Type           VariantType
	MatchPatterns  []string
	OutputPatterns []string
	Priority       int
	FilterName     string
}

type VariantSelector

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

func NewVariantSelector

func NewVariantSelector() *VariantSelector

func (*VariantSelector) AddVariant

func (vs *VariantSelector) AddVariant(v Variant)

func (*VariantSelector) DetectProjectType

func (vs *VariantSelector) DetectProjectType(workDir string) ProjectType

func (*VariantSelector) GetVariants

func (vs *VariantSelector) GetVariants() []Variant

func (*VariantSelector) SelectVariant

func (vs *VariantSelector) SelectVariant(command string, output string, workDir string) *Variant

type VariantType

type VariantType string
const (
	VariantFileDetection VariantType = "file_detection"
	VariantOutputPattern VariantType = "output_pattern"
)

Jump to

Keyboard shortcuts

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