Skip to content

Commit

Permalink
rename to go-micro.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Oct 13, 2021
1 parent a87f9a8 commit 7136c61
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 33 deletions.
14 changes: 7 additions & 7 deletions cmd/gomu/README.md
Original file line number Diff line number Diff line change
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 github.com/asim/go-micro/cmd/gomu@latest
go install go-micro.dev/cmd/gomu@latest
```

Let's create a new service using the `new` command.
Expand Down Expand Up @@ -48,7 +48,7 @@ You will need protoc-gen-micro for code generation
# https://github.com/protocolbuffers/protobuf/releases
go get -u google.golang.org/protobuf/proto
go install github.com/golang/protobuf/protoc-gen-go@latest
go install github.com/asim/go-micro/cmd/protoc-gen-micro/v3@latest
go install go-micro.dev/cmd/protoc-gen-micro/v4@latest
```

## Creating A Service
Expand All @@ -67,7 +67,7 @@ download protobuf for go-micro:

go get -u google.golang.org/protobuf/proto
go install github.com/golang/protobuf/protoc-gen-go@latest
go install github.com/asim/go-micro/cmd/protoc-gen-micro/v3@latest
go install go-micro.dev/cmd/protoc-gen-micro/v4@latest

compile the proto file helloworld.proto:

Expand All @@ -90,7 +90,7 @@ download protobuf for go-micro:

go get -u google.golang.org/protobuf/proto
go install github.com/golang/protobuf/protoc-gen-go@latest
go install github.com/asim/go-micro/cmd/protoc-gen-micro/v3@latest
go install go-micro.dev/cmd/protoc-gen-micro/v4@latest

compile the proto file helloworld.proto:

Expand Down Expand Up @@ -143,7 +143,7 @@ import (
"context"
"fmt"

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

func Greet(ctx context.Context, name string) string {
Expand Down Expand Up @@ -377,12 +377,12 @@ $ gomu stream bidi helloworld Helloworld.BidiStream '{"stroke": 1}' '{"stroke":

This software is published under the [MIT license][10].

[1]: https://github.com/asim/go-micro
[1]: https://go-micro.dev
[2]: https://golang.org/dl/
[3]: https://golang.org/cmd/go/#hdr-Compile_and_install_packages_and_dependencies
[4]: https://grpc.io/docs/protoc-installation/
[5]: https://micro.mu/github.com/golang/protobuf/protoc-gen-go
[6]: https://github.com/asim/go-micro/tree/master/cmd/protoc-gen-micro
[6]: https://go-micro.dev/tree/master/cmd/protoc-gen-micro
[7]: https://www.jaegertracing.io/
[8]: https://github.com/jaegertracing/jaeger-client-go#environment-variables
[9]: https://skaffold.dev/
Expand Down
2 changes: 1 addition & 1 deletion cmd/gomu/cmd/cli/call/call.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"strings"

"github.com/asim/go-micro/cmd/gomu/cmd"
"go-micro.dev/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
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package cli

import (
_ "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"
_ "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"
)
2 changes: 1 addition & 1 deletion cmd/gomu/cmd/cli/describe/describe.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package describe

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

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

"github.com/asim/go-micro/cmd/gomu/cmd"
"go-micro.dev/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
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"os"
"strings"

"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"
"go-micro.dev/cmd/gomu/cmd"
"go-micro.dev/cmd/gomu/generator"
tmpl "go-micro.dev/cmd/gomu/generator/template"
"github.com/urfave/cli/v2"
)

Expand Down
8 changes: 4 additions & 4 deletions cmd/gomu/cmd/cli/new/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"path"
"strings"

"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"
"go-micro.dev/cmd/gomu/cmd"
"go-micro.dev/cmd/gomu/generator"
tmpl "go-micro.dev/cmd/gomu/generator/template"
"github.com/urfave/cli/v2"
)

Expand Down Expand Up @@ -180,7 +180,7 @@ func protoComments(name, dir string) []string {
"\ndownload protobuf for go-micro:\n",
"go get -u google.golang.org/protobuf/proto",
"go install github.com/golang/protobuf/protoc-gen-go@latest",
"go install github.com/asim/go-micro/cmd/protoc-gen-micro/v3@latest",
"go install github.com/asim/go-micro/cmd/protoc-gen-micro/v4@latest",
"\ncompile the proto file " + name + ".proto:\n",
"cd " + dir,
"make proto tidy\n",
Expand Down
2 changes: 1 addition & 1 deletion cmd/gomu/cmd/cli/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"path/filepath"
"strings"

"github.com/asim/go-micro/cmd/gomu/cmd"
"go-micro.dev/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
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"sort"

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

Expand Down
2 changes: 1 addition & 1 deletion cmd/gomu/cmd/cli/stream/stream.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package stream

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

Expand Down
4 changes: 2 additions & 2 deletions cmd/gomu/generator/template/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import (
{{end}} "go-micro.dev/v4"
log "go-micro.dev/v4/logger"{{if .Jaeger}}
"github.com/asim/go-micro/cmd/gomu/debug/trace/jaeger"{{end}}
"go-micro.dev/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}}
"github.com/asim/go-micro/cmd/gomu/debug/trace/jaeger"{{end}}
"go-micro.dev/cmd/gomu/debug/trace/jaeger"{{end}}
)
var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/gomu/generator/template/makefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var Makefile = `GOPATH:=$(shell go env GOPATH)
init:
@go get -u google.golang.org/protobuf/proto
@go install github.com/golang/protobuf/protoc-gen-go@latest
@go install github.com/asim/go-micro/cmd/protoc-gen-micro/v3@latest
@go install github.com/asim/go-micro/cmd/protoc-gen-micro/v4@latest
.PHONY: proto
proto:
Expand Down
2 changes: 1 addition & 1 deletion cmd/gomu/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/asim/go-micro/cmd/gomu
module go-micro.dev/cmd/gomu

go 1.16

Expand Down
4 changes: 2 additions & 2 deletions cmd/gomu/main.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package main

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

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

func main() {
Expand Down

0 comments on commit 7136c61

Please sign in to comment.