compiler

package
v0.3.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolvePins added in v0.3.6

func ResolvePins(dir string, paths []string, m *pathmatch.Matcher) map[string]bool

Types

type Option

type Option func(*options)

func ConfigOptions added in v0.3.2

func ConfigOptions(cc config.CompileConfig) []Option

Translate the workspace compile block into options; absent fields keep engine defaults.

func WithCompileRoot

func WithCompileRoot(r string) Option

func WithFullRescan added in v0.1.7

func WithFullRescan() Option

func WithIgnore

func WithIgnore(m *pathmatch.Matcher) Option

func WithLogger

func WithLogger(l *slog.Logger) Option

func WithMaxFileSize added in v0.3.2

func WithMaxFileSize(n int64) Option

func WithMaxParallelism added in v0.3.2

func WithMaxParallelism(n int) Option

func WithMessage

func WithMessage(m string) Option

func WithPaths

func WithPaths(p []string) Option

func WithPinned added in v0.3.6

func WithPinned(m *pathmatch.Matcher) Option

func WithPins added in v0.3.6

func WithPins(p map[string]bool) Option

func WithRedactor added in v0.3.2

func WithRedactor(r *redaction.Redactor) Option

func WithReseedPinned added in v0.3.6

func WithReseedPinned() Option

func WithReseedTemperatures added in v0.1.8

func WithReseedTemperatures() Option

func WithTemps

func WithTemps(t map[string]*float64) Option

func WithWallClockTimeout added in v0.3.2

func WithWallClockTimeout(d time.Duration) Option

type Result

type Result struct {
	Added    int
	Modified int
	Removed  int
	Total    int
}

func Compile

func Compile(ctx context.Context, st *store.Store, opts ...Option) (*Result, error)

func CompileDir

func CompileDir(ctx context.Context, st *store.Store, dir, message string, opts ...Option) (*Result, error)

func CompileFile added in v0.1.5

func CompileFile(ctx context.Context, st *store.Store, path, message string, opts ...Option) (*Result, error)

Compile a single file; compile root anchors at the file's parent directory.

Jump to

Keyboard shortcuts

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