bootstrap

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultChannelsDir = "src/channels"

DefaultChannelsDir is the default channels directory for new projects.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Root        string
	Created     int
	Overwritten int
	Skipped     int
}

type Scaffolder

type Scaffolder struct {
	// contains filtered or unexported fields
}

func NewScaffolder

func NewScaffolder(logger *slog.Logger) *Scaffolder

func (*Scaffolder) BootstrapChannel

func (s *Scaffolder) BootstrapChannel(root, channelName, channelsDir string, force bool) (*Result, error)

BootstrapChannel creates a new channel in an existing project root. channelsDir is the relative path from root (e.g. "src/channels").

func (*Scaffolder) BootstrapProject

func (s *Scaffolder) BootstrapProject(dir, projectName string, force bool) (*Result, error)

BootstrapProject creates a full intu project in dir/projectName.

Jump to

Keyboard shortcuts

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