resolver

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package resolver resolves a project without depending on storage or CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Confidence

type Confidence string
const (
	Exact   Confidence = "exact"
	High    Confidence = "high"
	Unknown Confidence = "unknown"
)

type Input

type Input struct {
	ExplicitProject    string
	AdapterProject     string
	EnvironmentProject string
	CWD                string
	GitRoot            string
}

type Method

type Method string
const (
	Explicit    Method = "explicit"
	Adapter     Method = "adapter"
	Environment Method = "environment"
	CWD         Method = "cwd"
	GitRoot     Method = "git_root"
	Path        Method = "registered_path"
	Unresolved  Method = "unresolved"
)

type ProjectResolution

type ProjectResolution struct {
	ProjectSlug string     `json:"project_slug,omitempty"`
	Method      Method     `json:"method"`
	Confidence  Confidence `json:"confidence"`
	Evidence    string     `json:"evidence"`
}

func Resolve

func Resolve(input Input, registeredPaths map[string]string) ProjectResolution

Jump to

Keyboard shortcuts

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