project

package
v3.2.18 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdNew = &cobra.Command{
	Use:   "new",
	Short: "项目创建",
	Long:  "新建微服务项目: toolkit new helloworld",
	Run:   run,
}

CmdNew represents the new command.

Functions

This section is empty.

Types

type Project

type Project struct {
	Name string
	Path string
}

Project is a project template.

func (*Project) Add

func (p *Project) Add(ctx context.Context, dir string, layout string, branch string, mod string) error

func (*Project) New

func (p *Project) New(ctx context.Context, dir string, layout string, branch string) error

New new a project from remote repo.

Jump to

Keyboard shortcuts

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