summaryrefslogtreecommitdiff
path: root/cmd/rr/main.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-05 16:23:14 +0300
committerWolfy-J <[email protected]>2018-06-05 16:23:14 +0300
commit76ff8d1c95e087749d559ee5a4f8f0348feafffa (patch)
tree112630d2d2cfe41d809065034c13b1066b8e05c2 /cmd/rr/main.go
parent3c86132f90ef6473b4073a8b1500d01b6114fc30 (diff)
Cs and refactoring
Diffstat (limited to 'cmd/rr/main.go')
-rw-r--r--cmd/rr/main.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/cmd/rr/main.go b/cmd/rr/main.go
index 9d6f685c..26f70fdd 100644
--- a/cmd/rr/main.go
+++ b/cmd/rr/main.go
@@ -23,13 +23,17 @@
package main
import (
- "github.com/spiral/roadrunner/cmd/rr/cmd"
+ rr "github.com/spiral/roadrunner/cmd/rr/cmd"
+ "github.com/spiral/roadrunner/rpc"
- // service plugins
+ // cli plugins
_ "github.com/spiral/roadrunner/cmd/rr/http"
)
func main() {
+ // provides ability to make local connection to services
+ rr.Services.Register("rpc", new(rpc.Service))
+
// you can register additional commands using cmd.CLI
- cmd.Execute()
+ rr.Execute()
}