Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateOptions ¶
type CreateOptions struct {
cli.IOStreams
cmdutil.ConfigFlags
cmdutil.TimeoutFlag
GitClient git.Client
GitignoreClient *gitignore.Client
LicenseClient *license.Client
OutputDir string
Skeletons []string
DryRun bool
Force bool
Overwrite bool
OverwriteFiles []string
SkipFiles []string
// contains filtered or unexported fields
}
CreateOptions holds the options for the create command.
func (*CreateOptions) AddFlags ¶
func (o *CreateOptions) AddFlags(cmd *cobra.Command)
AddFlags adds flags for all project creation options to cmd.
func (*CreateOptions) Complete ¶
func (o *CreateOptions) Complete(args []string) (err error)
Complete completes the project creation options.
func (*CreateOptions) Run ¶
func (o *CreateOptions) Run() error
Run loads all project skeletons that the user provided and creates the project at the output directory.
func (*CreateOptions) Validate ¶
func (o *CreateOptions) Validate() error
Validate validates the project creation options.
Click to show internal directories.
Click to hide internal directories.