create

package
v1.3.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdCreate

func NewCmdCreate() *cobra.Command

NewCmdCreate returns new initialized instance of 'create' sub command.

Types

type CreateOptions

type CreateOptions struct {
	GoVersion    string
	TemplatePath string
	RootPackage  string
	AppName      string
	AppNameCamel string
}

CreateOptions is an option struct to support 'create' sub command.

func NewCreateOptions

func NewCreateOptions() *CreateOptions

NewCreateOptions returns an initialized CreateOptions instance.

func (*CreateOptions) Complete

func (o *CreateOptions) Complete(cmd *cobra.Command, args []string) error

Complete completes all the required options.

func (*CreateOptions) Run

func (o *CreateOptions) Run(args []string) error

Run executes a new sub command using the specified options.

func (*CreateOptions) Validate

func (o *CreateOptions) Validate(cmd *cobra.Command, args []string) error

Validate makes sure there is no discrepancy in command options.

Jump to

Keyboard shortcuts

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