🎨 Cleanup code

This commit is contained in:
Liang Ding 2019-05-16 12:19:26 +08:00
parent 318f453125
commit 07e9f4654f
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D
2 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,7 @@
"WD": "${pwd}",
"Locale": "en_US",
"Playground": "${home}/playground",
"Users": "conf/users",
"UsersWorkspaces": "${WD}/workspaces",
"AllowRegister": true,
"Autocomplete": true

View File

@ -66,6 +66,9 @@ func init() {
log.SetLevel("warn")
logger = log.NewLogger(os.Stdout)
logger.Warnf(*confUsers)
logger.Warnf(*confUsersWorkspaces)
//wd := util.OS.Pwd()
//if strings.HasPrefix(wd, os.TempDir()) {
// logger.Error("Don't run Wide in OS' temp directory or with `go run`")