initialize

package
v0.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package initialize implements the "kure init" command, which scaffolds a new project directory with cluster configuration and example application templates ready for use with "kure generate cluster".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInitCommand

func NewInitCommand(globalOpts *options.GlobalOptions) *cobra.Command

NewInitCommand creates the init subcommand.

Types

type InitOptions

type InitOptions struct {
	ProjectName string
	OutputDir   string
	GitOpsType  string

	Factory   cli.Factory
	IOStreams cli.IOStreams
}

InitOptions contains options for the init command.

func (*InitOptions) AddFlags

func (o *InitOptions) AddFlags(flags *pflag.FlagSet)

AddFlags adds flags to the command.

func (*InitOptions) Complete

func (o *InitOptions) Complete() error

Complete fills in defaults for unset fields.

func (*InitOptions) Run

func (o *InitOptions) Run() error

Run executes the init command.

func (*InitOptions) Validate

func (o *InitOptions) Validate() error

Validate checks that all options are valid.

Jump to

Keyboard shortcuts

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