Internal
internal/adapters/filesystem
Package filesystem owns workspace discovery and filesystem-backed bootstrap operations.
import "github.com/nilstate/scafld/v2/internal/adapters/filesystem"
Package filesystem owns workspace discovery and filesystem-backed bootstrap operations.
Functions
func ResolveRoot(ctx context.Context, explicit string, opts Discovery) (string, error)
Source: internal/adapters/filesystem/workspace.go:59
ResolveRoot resolves an explicit, environment, or walk-up workspace root.
Types
type Discovery
Source: internal/adapters/filesystem/workspace.go:16
Discovery controls workspace root discovery.
type Discovery struct {
EnvRoot string
CWD string
}Fields
EnvRoot stringCWD string
type WorkspaceStore
Source: internal/adapters/filesystem/workspace.go:13
WorkspaceStore creates the project-owned workspace directory layout.
type WorkspaceStore struct{}func Init(ctx context.Context, root string) (workspace.InitResult, error)
Source: internal/adapters/filesystem/workspace.go:22
Init creates the .scafld workspace directories under root.
