Skip to content

Commit

Permalink
fix gomu
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Oct 14, 2021
1 parent 00f4611 commit e7dbda6
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions cmd/gomu/README.md
Expand Up @@ -9,7 +9,7 @@ Gomu is a helper tool for developing [Go Micro][1] projects.
Installation is done by using the [`go install`][3] command.

```bash
go install go-micro.dev/cmd/gomu@latest
go install github.com/asim/go-micro/cmd/gomu@latest
```

Let's create a new service using the `new` command.
Expand Down Expand Up @@ -143,7 +143,7 @@ import (
"context"
"fmt"

"go-micro.dev/cmd/gomu/debug/trace"
"github.com/asim/go-micro/cmd/gomu/debug/trace"
)

func Greet(ctx context.Context, name string) string {
Expand Down
2 changes: 1 addition & 1 deletion cmd/gomu/cmd/cli/call/call.go
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"strings"

"go-micro.dev/cmd/gomu/cmd"
"github.com/asim/go-micro/cmd/gomu/cmd"
"go-micro.dev/v4"
"go-micro.dev/v4/client"
"github.com/urfave/cli/v2"
Expand Down
14 changes: 7 additions & 7 deletions cmd/gomu/cmd/cli/cli.go
@@ -1,11 +1,11 @@
package cli

import (
_ "go-micro.dev/cmd/gomu/cmd/cli/call"
_ "go-micro.dev/cmd/gomu/cmd/cli/describe"
_ "go-micro.dev/cmd/gomu/cmd/cli/generate"
_ "go-micro.dev/cmd/gomu/cmd/cli/new"
_ "go-micro.dev/cmd/gomu/cmd/cli/run"
_ "go-micro.dev/cmd/gomu/cmd/cli/services"
_ "go-micro.dev/cmd/gomu/cmd/cli/stream"
_ "github.com/asim/go-micro/cmd/gomu/cmd/cli/call"
_ "github.com/asim/go-micro/cmd/gomu/cmd/cli/describe"
_ "github.com/asim/go-micro/cmd/gomu/cmd/cli/generate"
_ "github.com/asim/go-micro/cmd/gomu/cmd/cli/new"
_ "github.com/asim/go-micro/cmd/gomu/cmd/cli/run"
_ "github.com/asim/go-micro/cmd/gomu/cmd/cli/services"
_ "github.com/asim/go-micro/cmd/gomu/cmd/cli/stream"
)
2 changes: 1 addition & 1 deletion cmd/gomu/cmd/cli/describe/describe.go
@@ -1,7 +1,7 @@
package describe

import (
"go-micro.dev/cmd/gomu/cmd"
"github.com/asim/go-micro/cmd/gomu/cmd"
"github.com/urfave/cli/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/gomu/cmd/cli/describe/service.go
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"

"go-micro.dev/cmd/gomu/cmd"
"github.com/asim/go-micro/cmd/gomu/cmd"
"github.com/urfave/cli/v2"
"gopkg.in/yaml.v2"
)
Expand Down
6 changes: 3 additions & 3 deletions cmd/gomu/cmd/cli/generate/generate.go
Expand Up @@ -6,9 +6,9 @@ import (
"os"
"strings"

"go-micro.dev/cmd/gomu/cmd"
"go-micro.dev/cmd/gomu/generator"
tmpl "go-micro.dev/cmd/gomu/generator/template"
"github.com/asim/go-micro/cmd/gomu/cmd"
"github.com/asim/go-micro/cmd/gomu/generator"
tmpl "github.com/asim/go-micro/cmd/gomu/generator/template"
"github.com/urfave/cli/v2"
)

Expand Down
6 changes: 3 additions & 3 deletions cmd/gomu/cmd/cli/new/new.go
Expand Up @@ -6,9 +6,9 @@ import (
"path"
"strings"

"go-micro.dev/cmd/gomu/cmd"
"go-micro.dev/cmd/gomu/generator"
tmpl "go-micro.dev/cmd/gomu/generator/template"
"github.com/asim/go-micro/cmd/gomu/cmd"
"github.com/asim/go-micro/cmd/gomu/generator"
tmpl "github.com/asim/go-micro/cmd/gomu/generator/template"
"github.com/urfave/cli/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/gomu/cmd/cli/run/run.go
Expand Up @@ -7,7 +7,7 @@ import (
"path/filepath"
"strings"

"go-micro.dev/cmd/gomu/cmd"
"github.com/asim/go-micro/cmd/gomu/cmd"
"go-micro.dev/v4/runtime"
"go-micro.dev/v4/runtime/local/git"
"github.com/fsnotify/fsnotify"
Expand Down
2 changes: 1 addition & 1 deletion cmd/gomu/cmd/cli/services/services.go
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"sort"

"go-micro.dev/cmd/gomu/cmd"
"github.com/asim/go-micro/cmd/gomu/cmd"
"github.com/urfave/cli/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/gomu/cmd/cli/stream/stream.go
@@ -1,7 +1,7 @@
package stream

import (
"go-micro.dev/cmd/gomu/cmd"
"github.com/asim/go-micro/cmd/gomu/cmd"
"github.com/urfave/cli/v2"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/gomu/generator/template/main.go
Expand Up @@ -50,7 +50,7 @@ import (
{{end}} "go-micro.dev/v4"
log "go-micro.dev/v4/logger"{{if .Jaeger}}
"go-micro.dev/cmd/gomu/debug/trace/jaeger"{{end}}
"github.com/asim/go-micro/cmd/gomu/debug/trace/jaeger"{{end}}
)
var (
Expand Down Expand Up @@ -102,7 +102,7 @@ import (
{{end}} "go-micro.dev/v4"
log "go-micro.dev/v4/logger"{{if .Jaeger}}
"go-micro.dev/cmd/gomu/debug/trace/jaeger"{{end}}
"github.com/asim/go-micro/cmd/gomu/debug/trace/jaeger"{{end}}
)
var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/gomu/go.mod
@@ -1,4 +1,4 @@
module go-micro.dev/cmd/gomu
module github.com/asim/go-micro/cmd/gomu

go 1.16

Expand Down
4 changes: 2 additions & 2 deletions cmd/gomu/main.go
@@ -1,10 +1,10 @@
package main

import (
"go-micro.dev/cmd/gomu/cmd"
"github.com/asim/go-micro/cmd/gomu/cmd"

// register commands
_ "go-micro.dev/cmd/gomu/cmd/cli"
_ "github.com/asim/go-micro/cmd/gomu/cmd/cli"
)

func main() {
Expand Down

0 comments on commit e7dbda6

Please sign in to comment.