project

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateCmd

func NewCreateCmd(streams cli.IOStreams) *cobra.Command

NewCreateCmd creates a command that can create projects from project skeletons using a variety of user-defined options.

Types

type CreateOptions

type CreateOptions struct {
	cli.IOStreams
	cmdutil.ConfigFlags
	cmdutil.TimeoutFlag

	GitClient       git.Client
	GitignoreClient *gitignore.Client
	LicenseClient   *license.Client

	ProjectName    string
	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.

Jump to

Keyboard shortcuts

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