command

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const TEMPLATE_URL = "https://github.com/mylukin/EchoPilot-Template/archive/refs/heads/main.zip"

TEMPLATE_URL 模板地址

Variables

View Source
var CreateProjectCommand = cli.Command{
	Name:      "create",
	Aliases:   []string{"c"},
	Usage:     ei18n.Sprintf("create a project"),
	ArgsUsage: `[project name]`,
	Action: func(c *cli.Context) error {
		projectName := c.Args().Get(0)
		if projectName == "" {
			return errors.New(ei18n.Sprintf(`[project name] can't be empty.`))
		}
		return createProject(projectName)
	},
}

Functions

func RegisterCommands

func RegisterCommands(app *cli.App)

RegisterCommands 注册所有命令

Types

This section is empty.

Jump to

Keyboard shortcuts

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