mirror of
				https://github.com/beego/bee.git
				synced 2025-11-03 23:03:27 +00:00 
			
		
		
		
	Update to v1.12.3
This commit is contained in:
		@@ -38,7 +38,7 @@ var CmdApiapp = &commands.Command{
 | 
				
			|||||||
  now default supoort generate a go modules project.
 | 
					  now default supoort generate a go modules project.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  {{"Example:"|bold}}
 | 
					  {{"Example:"|bold}}
 | 
				
			||||||
      $ bee api [appname] [-tables=""] [-driver=mysql] [-conn="root:@tcp(127.0.0.1:3306)/test"]  [-gopath=false] [-beego=v1.12.1]
 | 
					      $ bee api [appname] [-tables=""] [-driver=mysql] [-conn="root:@tcp(127.0.0.1:3306)/test"]  [-gopath=false] [-beego=v1.12.3]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  If 'conn' argument is empty, the command will generate an example API application. Otherwise the command
 | 
					  If 'conn' argument is empty, the command will generate an example API application. Otherwise the command
 | 
				
			||||||
  will connect to your database and generate models based on the existing tables.
 | 
					  will connect to your database and generate models based on the existing tables.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,7 +25,7 @@ var CmdHproseapp = &commands.Command{
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  {{"To scaffold out your application, use:"|bold}}
 | 
					  {{"To scaffold out your application, use:"|bold}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      $ bee hprose [appname] [-tables=""] [-driver=mysql] [-conn="root:@tcp(127.0.0.1:3306)/test"] [-gopath=false] [-beego=v1.12.1] 
 | 
					      $ bee hprose [appname] [-tables=""] [-driver=mysql] [-conn="root:@tcp(127.0.0.1:3306)/test"] [-gopath=false] [-beego=v1.12.3] 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  If 'conn' is empty, the command will generate a sample application. Otherwise the command
 | 
					  If 'conn' is empty, the command will generate a sample application. Otherwise the command
 | 
				
			||||||
  will connect to your database and generate models based on the existing tables.
 | 
					  will connect to your database and generate models based on the existing tables.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -31,12 +31,12 @@ var gopath utils.DocValue
 | 
				
			|||||||
var beegoVersion utils.DocValue
 | 
					var beegoVersion utils.DocValue
 | 
				
			||||||
 | 
					
 | 
				
			||||||
var CmdNew = &commands.Command{
 | 
					var CmdNew = &commands.Command{
 | 
				
			||||||
	UsageLine: "new [appname] [-gopath=false] [-beego=v1.12.1]",
 | 
						UsageLine: "new [appname] [-gopath=false] [-beego=v1.12.3]",
 | 
				
			||||||
	Short:     "Creates a Beego application",
 | 
						Short:     "Creates a Beego application",
 | 
				
			||||||
	Long: `
 | 
						Long: `
 | 
				
			||||||
Creates a Beego application for the given app name in the current directory.
 | 
					Creates a Beego application for the given app name in the current directory.
 | 
				
			||||||
  now default supoort generate a go modules project
 | 
					  now default supoort generate a go modules project
 | 
				
			||||||
  The command 'new' creates a folder named [appname] [-gopath=false] [-beego=v1.12.1] and generates the following structure:
 | 
					  The command 'new' creates a folder named [appname] [-gopath=false] [-beego=v1.12.3] and generates the following structure:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            ├── main.go
 | 
					            ├── main.go
 | 
				
			||||||
            ├── go.mod
 | 
					            ├── go.mod
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user