project

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GithubRepoURL = "https://github.com/tx7do/go-wind-admin-template.git"
	GiteeRepoURL  = "https://gitee.com/tx7do/go-wind-admin-template.git"
)
View Source
const (
	TemplateModuleName = "github.com/tx7do/go-wind-admin-template"
)

Variables

View Source
var CmdProject = &cobra.Command{
	Use:     "project [name]",
	Aliases: []string{"proj"},
	Short:   "create a new project scaffold",
	Long:    "Create a project using the repository template. Example: gow new project helloworld",
	Args:    cobra.ExactArgs(1),
	Run:     run,
}

CmdProject represents the project command.

Functions

This section is empty.

Types

type Project

type Project struct {
	Name   string
	Path   string
	Module string
}

func (*Project) Add

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

func (*Project) New

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

New a project from remote repo.

Jump to

Keyboard shortcuts

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