project

package
v1.8.21 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Canonical added in v1.1.4

func Canonical(start string, managedRoots []string) (*projectmodel.Project, error)

Canonical loads Pawn project paths when a manifest is available.

func IncludeRoots added in v1.1.4

func IncludeRoots(project *projectmodel.Project) []string

IncludeRoots returns native paths from a loaded project.

func MatchGlob

func MatchGlob(pattern, path string) bool

func RelPath

func RelPath(base, path string) string

Types

type File

type File struct {
	Path    string
	Content []byte
}

func Discover

func Discover(opts Options) ([]File, error)

type Options

type Options struct {
	Roots []string

	Include []string

	Exclude []string

	WorkingDir string
}

type PathError

type PathError struct {
	Path string
	Err  error
}

func (*PathError) Error

func (e *PathError) Error() string

func (*PathError) Unwrap

func (e *PathError) Unwrap() error

Jump to

Keyboard shortcuts

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