mirror of
https://github.com/casbin/bee.git
synced 2025-07-18 04:54:21 +08:00
New Bee banner
Added a new Bee banner using ASCII art. When bee is invoked, the banner is displayed with the version number (short banner). A More verbose Banner is added to 'bee version' which shows more information about the host and Go runtime.
This commit is contained in:
@ -5,6 +5,7 @@ import (
|
||||
"os"
|
||||
"path"
|
||||
"strings"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func generateModel(mname, fields, crupath string) {
|
||||
@ -44,7 +45,7 @@ func generateModel(mname, fields, crupath string) {
|
||||
f.WriteString(content)
|
||||
// gofmt generated source code
|
||||
formatSourceCode(fpath)
|
||||
ColorLog("[INFO] model file generated: %s\n", fpath)
|
||||
fmt.Println("\tcreate\t", fpath)
|
||||
} else {
|
||||
// error creating file
|
||||
ColorLog("[ERRO] Could not create model file: %s\n", err)
|
||||
|
Reference in New Issue
Block a user