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.
Types ¶
type ProjectInitOptions ¶
type ProjectInitOptions struct {
IOStreams *iostreams.IOStreams
TUI *tui.TUI
Prompter func() *prompterpkg.Prompter
Config func() (config.Config, 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.
Click to show internal directories.
Click to hide internal directories.