init

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package init provides the project initialization subcommand.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdProjectInit

func NewCmdProjectInit(f *cmdutil.Factory, runF func(context.Context, *ProjectInitOptions) error) *cobra.Command

NewCmdProjectInit creates the project init command.

func Run added in v0.2.0

func Run(ctx context.Context, opts *ProjectInitOptions) error

Run executes the project init command logic.

Types

type ProjectInitOptions

type ProjectInitOptions struct {
	IOStreams      *iostreams.IOStreams
	TUI            *tui.TUI
	Prompter       func() *prompterpkg.Prompter
	Config         func() (config.Config, error)
	Logger         func() (*logger.Logger, error)
	ProjectManager func() (project.ProjectManager, error)

	Name  string // Positional arg: project name
	Force bool
	Yes   bool // Non-interactive mode
}

ProjectInitOptions contains the options for the project init command.

Jump to

Keyboard shortcuts

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