Added auto-detect appname

This commit is contained in:
Unknown 2013-09-11 18:41:36 -04:00
parent a655f78a4e
commit abee36f379
2 changed files with 1 additions and 3 deletions

View File

@ -1,5 +1,4 @@
{
"watch_imports": true,
"go_install": false,
"watch_ext": [],
"dir_structure":{

3
run.go
View File

@ -21,6 +21,7 @@ import (
"runtime"
"github.com/Unknwon/com"
"github.com/Unknwon/hv"
)
var cmdRun = &Command{
@ -66,8 +67,6 @@ func init() {
var appname string
var conf struct {
// Indicates whether to watch imports changes.
WatchImports bool `json:"watch_imports"`
// Indicates whether execute "go install" before "go build".
GoInstall bool `json:"go_install"`
WatchExt []string `json:"watch_ext"`