initop

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package initop owns the initialization application operation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, input Input, loadProject LoadProject, gate Gate) (initspec.Outcome, error)

Run initializes without overwriting collisions. Once config or output is created, later failures leave it visible and return an ordinary error.

Types

type Gate

type Gate func(context.Context, string) error

Gate validates the selected live command universe.

type Input

type Input struct {
	Root, ResidentRoot string
	Answers            map[string]string
	PromptInput        io.Reader
	PromptOutput       io.Writer
	Interactive        bool
}

Input contains parsed initialization values and CLI-selected prompt streams.

type LoadProject

type LoadProject func(string) (*project.Loader, error)

LoadProject constructs the project loader used after configuration authority exists.

Jump to

Keyboard shortcuts

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