new

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

You can use the "packr clean" command to clean up this, and any other packr generated files.

Index

Constants

View Source
const NewProjectHelpTemplate = `` /* 282-byte string literal not displayed */

Variables

View Source
var Cmd = cli.Command{
	Name:            "new",
	Aliases:         []string{"n"},
	Usage:           "Create Jupiter template project",
	Action:          CreateProject,
	SkipFlagParsing: false,
	UsageText:       NewProjectHelpTemplate,
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:        "d",
			Value:       "",
			Usage:       "Specify the directory of the project",
			Destination: &project.Path,
		},
	},
}
View Source
var (
	DefaultProjectName = "jupiter-demo"
)

Functions

func CreateProject

func CreateProject(cli *cli.Context) (err error)

CreateProject create a template project for Jupiter

Types

type ProjectInfo

type ProjectInfo struct {
	// project dir
	Path string
	// project name
	Name      string
	ModPrefix string
}

ProjectInfo ...

Directories

Path Synopsis
You can use the "packr2 clean" command to clean up this, and any other packr generated files.
You can use the "packr2 clean" command to clean up this, and any other packr generated files.

Jump to

Keyboard shortcuts

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