init

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdInit

func NewCmdInit(f *cmdutil.Factory, runF func(context.Context, *InitOptions) error) *cobra.Command

NewCmdInit creates the init command for user-level setup.

func Run

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

Run executes the init command logic.

Types

type InitOptions

type InitOptions struct {
	IOStreams *iostreams.IOStreams
	TUI       *tui.TUI
	Prompter  func() *prompterpkg.Prompter
	Config    func() *config.Config
	Client    func(context.Context) (*docker.Client, error)

	Yes bool // Non-interactive mode
}

InitOptions contains the options for the init command.

Jump to

Keyboard shortcuts

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