Internal
internal/app/bootstrap
Package bootstrap creates the project-owned scafld workspace layout.
import "github.com/nilstate/scafld/v2/internal/app/bootstrap"
Package bootstrap creates the project-owned scafld workspace layout.
Variables
ErrMissingWorkspaceStore is returned when bootstrap has no workspace port.
Source: internal/app/bootstrap/bootstrap.go:12
var ErrMissingWorkspaceStore = errors.New("missing workspace store")Functions
func Message(result workspace.InitResult) string
Source: internal/app/bootstrap/bootstrap.go:40
Message renders the human-facing summary for an init result.
func Run(ctx context.Context, store WorkspaceStore, input Input) (workspace.InitResult, error)
Source: internal/app/bootstrap/bootstrap.go:25
Run creates the scafld workspace layout.
Types
type Input
Source: internal/app/bootstrap/bootstrap.go:20
Input describes the workspace root to bootstrap.
type Input struct {
Root string
}Fields
Root string
type WorkspaceStore
Source: internal/app/bootstrap/bootstrap.go:15
WorkspaceStore creates workspace directories.
type WorkspaceStore interface {
Init(ctx context.Context, root string) (workspace.InitResult, error)
}Methods
Init func(ctx context.Context, root string) (workspace.InitResult, error)
