Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteError ¶
WriteError emits a standard error envelope for CLI tools.
Types ¶
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
Environment wires together providers and the file processor for standalone tools.
func NewEnvironment ¶
func NewEnvironment() (*Environment, error)
NewEnvironment constructs an Environment with all built-in language providers registered.
func (*Environment) FileProcessor ¶
func (env *Environment) FileProcessor() *core.FileProcessor
FileProcessor returns the configured file processor capable of multi-file operations.
func (*Environment) Provider ¶
func (env *Environment) Provider(language string) (providers.Provider, error)
Provider returns the provider implementation for the requested language.
func (*Environment) Providers ¶
func (env *Environment) Providers() *providers.Registry
Providers exposes the underlying registry for callers that need direct access.
type SourceData ¶
SourceData encapsulates the resolved source code for single-file tools.
func LoadSource ¶
func LoadSource(source *string, path *string) (*SourceData, error)
LoadSource resolves code from either an inline source field or a filesystem path. Exactly one input must be provided. The function preserves file permissions when reading from disk so callers can write modifications back safely.