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) Validate ¶
func (o *InitOptions) Validate() error
Validate checks that all options are valid.
Click to show internal directories.
Click to hide internal directories.