format code (#979)

master
miaogaolin 3 years ago committed by GitHub
parent db95b3f0e3
commit 423955c55f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -28,6 +28,7 @@ const (
flagStyle = "style"
flagDatabase = "database"
flagSchema = "schema"
flagHome = "home"
)
var errNotMatched = errors.New("sql not matched")
@ -40,7 +41,7 @@ func MysqlDDL(ctx *cli.Context) error {
idea := ctx.Bool(flagIdea)
style := ctx.String(flagStyle)
database := ctx.String(flagDatabase)
home := ctx.String("home")
home := ctx.String(flagHome)
if len(home) > 0 {
file.RegisterGoctlHome(home)

Loading…
Cancel
Save