Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdNew = &commands.Command{ UsageLine: "new [appname]", Short: "Creates a Beego application", Long: ` Creates a Beego application for the given app name in the current directory. The command 'new' creates a folder named [appname] and generates the following structure: ├── main.go ├── {{"conf"|foldername}} │ └── app.conf ├── {{"controllers"|foldername}} │ └── default.go ├── {{"models"|foldername}} ├── {{"routers"|foldername}} │ └── router.go ├── {{"tests"|foldername}} │ └── default_test.go ├── {{"static"|foldername}} │ └── {{"js"|foldername}} │ └── {{"css"|foldername}} │ └── {{"img"|foldername}} └── {{"views"|foldername}} └── index.tpl `, PreRun: func(cmd *commands.Command, args []string) { version.ShowShortVersionBanner() }, Run: CreateApp, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.