Skip to content

Commit

Permalink
minor change based on the cli package
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdadrad committed Sep 23, 2016
1 parent 4299b6e commit 9fb4951
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions mylg.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func init() {
// with interface
if len(eArgs) == 1 {
// initialize cli
c = cli.Init("local", version)
c = cli.Init(version)
go c.Run(req, nxt)
// start web server
go httpd.Run(cfg)
Expand All @@ -109,9 +109,8 @@ func init() {
// initialize name server
nsr = ns.NewRequest()
go nsr.Init()
// set default provider, promot
cPName = "local"
prompt = "local"
// set local as default
local()
}

func main() {
Expand All @@ -138,7 +137,7 @@ LOOP:
c.Next()
continue
}
subReq := cli.CMDReg.FindStringSubmatch(request)
subReq := cli.CMDRgx().FindStringSubmatch(request)
if len(subReq) == 0 {
println("syntax error")
c.Next()
Expand Down

0 comments on commit 9fb4951

Please sign in to comment.