initcmd

package
v3.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(opts Options) error

Run executes the interactive init wizard and writes .linespec.yml.

Types

type Options

type Options struct {
	// ProjectPath is the directory to scan for framework/database hints.
	// If empty, Run prompts the user.
	ProjectPath string
	// OutputPath is the directory where .linespec.yml is written.
	// If empty, Run prompts the user (defaults to ProjectPath).
	OutputPath string
	// Force skips the overwrite confirmation when .linespec.yml already exists.
	Force bool
	// Stdin is read for interactive prompts. Defaults to os.Stdin.
	Stdin io.Reader
	// Stdout receives all prompt output. Defaults to os.Stdout.
	Stdout io.Writer
}

Options controls the behaviour of Run.

Jump to

Keyboard shortcuts

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