diff options
author | Wolfy-J <[email protected]> | 2018-06-14 22:56:19 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-14 22:56:19 +0300 |
commit | 082c329d9dc84453a02693119d954f60a4792b11 (patch) | |
tree | a2e2279576c84a157c278869ee84d9f8f42b7c20 /cmd | |
parent | 5fef5b06e6261bc7c133380ef8b5bc8e63ac9fbe (diff) |
fmt
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/rr/cmd/root.go | 2 | ||||
-rw-r--r-- | cmd/rr/debug/listener.go | 4 | ||||
-rw-r--r-- | cmd/rr/http/reset.go | 4 | ||||
-rw-r--r-- | cmd/rr/http/workers.go | 8 | ||||
-rw-r--r-- | cmd/rr/main.go | 4 | ||||
-rw-r--r-- | cmd/rr/utils/cprint.go | 4 |
6 files changed, 13 insertions, 13 deletions
diff --git a/cmd/rr/cmd/root.go b/cmd/rr/cmd/root.go index bea42747..b1f3ea9a 100644 --- a/cmd/rr/cmd/root.go +++ b/cmd/rr/cmd/root.go @@ -24,8 +24,8 @@ import ( "github.com/sirupsen/logrus" "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/spiral/roadrunner/service" "github.com/spiral/roadrunner/cmd/rr/utils" + "github.com/spiral/roadrunner/service" "os" ) diff --git a/cmd/rr/debug/listener.go b/cmd/rr/debug/listener.go index 1b6fcf83..f137b06f 100644 --- a/cmd/rr/debug/listener.go +++ b/cmd/rr/debug/listener.go @@ -2,9 +2,9 @@ package debug import ( "github.com/sirupsen/logrus" - "github.com/spiral/roadrunner/service/http" - "github.com/spiral/roadrunner/cmd/rr/utils" "github.com/spiral/roadrunner" + "github.com/spiral/roadrunner/cmd/rr/utils" + "github.com/spiral/roadrunner/service/http" ) // Listener provide debug callback for system events. With colors! diff --git a/cmd/rr/http/reset.go b/cmd/rr/http/reset.go index 9e3dec3d..431b7e88 100644 --- a/cmd/rr/http/reset.go +++ b/cmd/rr/http/reset.go @@ -24,9 +24,9 @@ import ( "errors" "github.com/spf13/cobra" rr "github.com/spiral/roadrunner/cmd/rr/cmd" - "github.com/spiral/roadrunner/service/rpc" - "github.com/spiral/roadrunner/service" "github.com/spiral/roadrunner/cmd/rr/utils" + "github.com/spiral/roadrunner/service" + "github.com/spiral/roadrunner/service/rpc" ) func init() { diff --git a/cmd/rr/http/workers.go b/cmd/rr/http/workers.go index a70762af..fd3927e7 100644 --- a/cmd/rr/http/workers.go +++ b/cmd/rr/http/workers.go @@ -28,16 +28,16 @@ import ( "github.com/shirou/gopsutil/process" "github.com/spf13/cobra" rr "github.com/spiral/roadrunner/cmd/rr/cmd" + "github.com/spiral/roadrunner/cmd/rr/utils" + "github.com/spiral/roadrunner/service" "github.com/spiral/roadrunner/service/http" rrpc "github.com/spiral/roadrunner/service/rpc" - "github.com/spiral/roadrunner/service" - "github.com/spiral/roadrunner/cmd/rr/utils" "net/rpc" "os" - "strconv" - "time" "os/signal" + "strconv" "syscall" + "time" ) var ( diff --git a/cmd/rr/main.go b/cmd/rr/main.go index ee6b915b..40f191c6 100644 --- a/cmd/rr/main.go +++ b/cmd/rr/main.go @@ -31,8 +31,8 @@ import ( "github.com/spiral/roadrunner/service/static" // cli plugins - _ "github.com/spiral/roadrunner/cmd/rr/http" "github.com/spiral/roadrunner/cmd/rr/debug" + _ "github.com/spiral/roadrunner/cmd/rr/http" "github.com/spf13/cobra" ) @@ -51,7 +51,7 @@ func main() { rr.Container.Register(static.ID, &static.Service{}) // debug mode - rr.CLI.PersistentFlags().BoolVarP(&debugMode, "debug", "d", false, "debug mode", ) + rr.CLI.PersistentFlags().BoolVarP(&debugMode, "debug", "d", false, "debug mode") cobra.OnInitialize(func() { if debugMode { service, _ := rr.Container.Get(http.ID) diff --git a/cmd/rr/utils/cprint.go b/cmd/rr/utils/cprint.go index e0fb6931..020975ec 100644 --- a/cmd/rr/utils/cprint.go +++ b/cmd/rr/utils/cprint.go @@ -2,9 +2,9 @@ package utils import ( "fmt" + "github.com/mgutz/ansi" "regexp" "strings" - "github.com/mgutz/ansi" ) var reg *regexp.Regexp @@ -25,4 +25,4 @@ func Sprintf(format string, args ...interface{}) string { }) return fmt.Sprintf(format, args...) -}
\ No newline at end of file +} |