mirror of
https://github.com/beego/bee.git
synced 2024-11-22 05:00:54 +00:00
Added a few tweaks to the folder structure in the long description
This commit is contained in:
parent
e927a9193d
commit
73aa44e1a7
24
apiapp.go
24
apiapp.go
@ -36,19 +36,19 @@ var cmdApiapp = &Command{
|
|||||||
|
|
||||||
The command 'api' creates a folder named [appname] with the following structure:
|
The command 'api' creates a folder named [appname] with the following structure:
|
||||||
|
|
||||||
├── conf
|
|
||||||
│ └── app.conf
|
|
||||||
├── controllers
|
|
||||||
│ └── object.go
|
|
||||||
│ └── user.go
|
|
||||||
├── routers
|
|
||||||
│ └── router.go
|
|
||||||
├── tests
|
|
||||||
│ └── default_test.go
|
|
||||||
├── main.go
|
├── main.go
|
||||||
└── models
|
├── {{"conf"|foldername}}
|
||||||
└── object.go
|
│ └── app.conf
|
||||||
└── user.go
|
├── {{"controllers"|foldername}}
|
||||||
|
│ └── object.go
|
||||||
|
│ └── user.go
|
||||||
|
├── {{"routers"|foldername}}
|
||||||
|
│ └── router.go
|
||||||
|
├── {{"tests"|foldername}}
|
||||||
|
│ └── default_test.go
|
||||||
|
└── {{"models"|foldername}}
|
||||||
|
└── object.go
|
||||||
|
└── user.go
|
||||||
`,
|
`,
|
||||||
PreRun: func(cmd *Command, args []string) { ShowShortVersionBanner() },
|
PreRun: func(cmd *Command, args []string) { ShowShortVersionBanner() },
|
||||||
Run: createapi,
|
Run: createapi,
|
||||||
|
@ -37,10 +37,10 @@ var cmdHproseapp = &Command{
|
|||||||
|
|
||||||
The command 'hprose' creates a folder named [appname] with the following structure:
|
The command 'hprose' creates a folder named [appname] with the following structure:
|
||||||
|
|
||||||
├── conf
|
|
||||||
│ └── app.conf
|
|
||||||
├── main.go
|
├── main.go
|
||||||
└── models
|
├── {{"conf"|foldername}}
|
||||||
|
│ └── app.conf
|
||||||
|
└── {{"models"|foldername}}
|
||||||
└── object.go
|
└── object.go
|
||||||
└── user.go
|
└── user.go
|
||||||
`,
|
`,
|
||||||
|
32
new.go
32
new.go
@ -29,22 +29,22 @@ 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:
|
The command 'new' creates a folder named [appname] and generates the following structure:
|
||||||
|
|
||||||
|- main.go
|
├── main.go
|
||||||
|- conf
|
├── {{"conf"|foldername}}
|
||||||
|- app.conf
|
│ └── app.conf
|
||||||
|- controllers
|
├── {{"controllers"|foldername}}
|
||||||
|- default.go
|
│ └── default.go
|
||||||
|- models
|
├── {{"models"|foldername}}
|
||||||
|- routers
|
├── {{"routers"|foldername}}
|
||||||
|- router.go
|
│ └── router.go
|
||||||
|- tests
|
├── {{"tests"|foldername}}
|
||||||
|- default_test.go
|
│ └── default_test.go
|
||||||
|- static
|
├── {{"static"|foldername}}
|
||||||
|- js
|
│ └── {{"js"|foldername}}
|
||||||
|- css
|
│ └── {{"css"|foldername}}
|
||||||
|- img
|
│ └── {{"img"|foldername}}
|
||||||
|- views
|
└── {{"views"|foldername}}
|
||||||
index.tpl
|
└── index.tpl
|
||||||
|
|
||||||
`,
|
`,
|
||||||
PreRun: func(cmd *Command, args []string) { ShowShortVersionBanner() },
|
PreRun: func(cmd *Command, args []string) { ShowShortVersionBanner() },
|
||||||
|
11
util.go
11
util.go
@ -287,11 +287,12 @@ func __LINE__() int {
|
|||||||
// BeeFuncMap returns a FuncMap of functions used in different templates.
|
// BeeFuncMap returns a FuncMap of functions used in different templates.
|
||||||
func BeeFuncMap() template.FuncMap {
|
func BeeFuncMap() template.FuncMap {
|
||||||
return template.FuncMap{
|
return template.FuncMap{
|
||||||
"trim": strings.TrimSpace,
|
"trim": strings.TrimSpace,
|
||||||
"bold": bold,
|
"bold": bold,
|
||||||
"headline": MagentaBold,
|
"headline": MagentaBold,
|
||||||
"endline": EndLine,
|
"foldername": RedBold,
|
||||||
"tmpltostr": TmplToString,
|
"endline": EndLine,
|
||||||
|
"tmpltostr": TmplToString,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user