initop

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: AGPL-3.0 Imports: 15 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 performs one complete initialization operation and returns its semantic outcome. Rendering and protocol selection remain with the command.

Types

type Gate

type Gate func(context.Context, string) error

Gate is the command-composed compatibility gate that must pass before an existing project is republished.

type Input

type Input struct {
	Root         string
	Force        bool
	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 is the command-composed project loader constructor used after the initialization operation has established or selected configuration authority.

Jump to

Keyboard shortcuts

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