bootstrap

package
v0.7.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoInjections

func DoInjections(inj remy.Injector, opts Options) error

DoInjections is the ONE composition-root switchboard for every CLI collaborator (knowledge, vcs, obs, install/target registries); nothing outside it, or a command handler's first lines, reads inj.

Types

type Options

type Options struct {
	// Root selects the knowledge source: empty reads the embedded snapshot,
	// non-empty reads <Root>/knowledge from disk (dev mode).
	Root string
	// ProjectDir resolves the vcs.Repository factory. It may not point at a
	// git repository; the factory's error surfaces to whichever command
	// handler asks for the repository.
	ProjectDir string
	// LogLevel gates the hook-execution logger; empty disables logging.
	LogLevel string
	// LogPath is the hook-execution logger's file path; empty disables
	// logging even when LogLevel is set, since obs holds no host-layout
	// default of its own to fall back to.
	LogPath string
}

Options carries the CLI-resolved inputs the composition root needs to wire the injector. It stays independent of cmd/pulsarules_cli's own Options struct so this package never imports cmd.

Jump to

Keyboard shortcuts

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