loader

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package loader scans a goforge workspace on disk and builds the in-memory model.Workspace. Malformed bricks are reported as warnings rather than fatal errors so that commands like info and check can still report what they find.

Index

Constants

View Source
const (
	ComponentsDir  = "components"
	BasesDir       = "bases"
	ProjectsDir    = "projects"
	DevelopmentDir = "development"
)

Directory names within a workspace.

Variables

This section is empty.

Functions

func FindRoot

func FindRoot(dir string) (string, error)

FindRoot walks up from dir looking for the directory that contains workspace.yaml. It returns an error if none is found.

func Load

func Load(dir string) (*model.Workspace, error)

Load finds the workspace root starting at dir and builds the model.

func LoadRoot

func LoadRoot(root string) (*model.Workspace, error)

LoadRoot builds the model for the workspace rooted at root.

Types

This section is empty.

Jump to

Keyboard shortcuts

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