mirror of
https://github.com/go-micro/go-micro.git
synced 2025-04-23 11:07:43 +02:00
fix gomu
This commit is contained in:
parent
00f461141a
commit
e7dbda689e
@ -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.
|
Installation is done by using the [`go install`][3] command.
|
||||||
|
|
||||||
```bash
|
```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.
|
Let's create a new service using the `new` command.
|
||||||
@ -143,7 +143,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"fmt"
|
"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 {
|
func Greet(ctx context.Context, name string) string {
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"go-micro.dev/cmd/gomu/cmd"
|
"github.com/asim/go-micro/cmd/gomu/cmd"
|
||||||
"go-micro.dev/v4"
|
"go-micro.dev/v4"
|
||||||
"go-micro.dev/v4/client"
|
"go-micro.dev/v4/client"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
package cli
|
package cli
|
||||||
|
|
||||||
import (
|
import (
|
||||||
_ "go-micro.dev/cmd/gomu/cmd/cli/call"
|
_ "github.com/asim/go-micro/cmd/gomu/cmd/cli/call"
|
||||||
_ "go-micro.dev/cmd/gomu/cmd/cli/describe"
|
_ "github.com/asim/go-micro/cmd/gomu/cmd/cli/describe"
|
||||||
_ "go-micro.dev/cmd/gomu/cmd/cli/generate"
|
_ "github.com/asim/go-micro/cmd/gomu/cmd/cli/generate"
|
||||||
_ "go-micro.dev/cmd/gomu/cmd/cli/new"
|
_ "github.com/asim/go-micro/cmd/gomu/cmd/cli/new"
|
||||||
_ "go-micro.dev/cmd/gomu/cmd/cli/run"
|
_ "github.com/asim/go-micro/cmd/gomu/cmd/cli/run"
|
||||||
_ "go-micro.dev/cmd/gomu/cmd/cli/services"
|
_ "github.com/asim/go-micro/cmd/gomu/cmd/cli/services"
|
||||||
_ "go-micro.dev/cmd/gomu/cmd/cli/stream"
|
_ "github.com/asim/go-micro/cmd/gomu/cmd/cli/stream"
|
||||||
)
|
)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package describe
|
package describe
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go-micro.dev/cmd/gomu/cmd"
|
"github.com/asim/go-micro/cmd/gomu/cmd"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"go-micro.dev/cmd/gomu/cmd"
|
"github.com/asim/go-micro/cmd/gomu/cmd"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
"gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v2"
|
||||||
)
|
)
|
||||||
|
@ -6,9 +6,9 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"go-micro.dev/cmd/gomu/cmd"
|
"github.com/asim/go-micro/cmd/gomu/cmd"
|
||||||
"go-micro.dev/cmd/gomu/generator"
|
"github.com/asim/go-micro/cmd/gomu/generator"
|
||||||
tmpl "go-micro.dev/cmd/gomu/generator/template"
|
tmpl "github.com/asim/go-micro/cmd/gomu/generator/template"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -6,9 +6,9 @@ import (
|
|||||||
"path"
|
"path"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"go-micro.dev/cmd/gomu/cmd"
|
"github.com/asim/go-micro/cmd/gomu/cmd"
|
||||||
"go-micro.dev/cmd/gomu/generator"
|
"github.com/asim/go-micro/cmd/gomu/generator"
|
||||||
tmpl "go-micro.dev/cmd/gomu/generator/template"
|
tmpl "github.com/asim/go-micro/cmd/gomu/generator/template"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"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"
|
||||||
"go-micro.dev/v4/runtime/local/git"
|
"go-micro.dev/v4/runtime/local/git"
|
||||||
"github.com/fsnotify/fsnotify"
|
"github.com/fsnotify/fsnotify"
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
"go-micro.dev/cmd/gomu/cmd"
|
"github.com/asim/go-micro/cmd/gomu/cmd"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package stream
|
package stream
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go-micro.dev/cmd/gomu/cmd"
|
"github.com/asim/go-micro/cmd/gomu/cmd"
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ import (
|
|||||||
{{end}} "go-micro.dev/v4"
|
{{end}} "go-micro.dev/v4"
|
||||||
log "go-micro.dev/v4/logger"{{if .Jaeger}}
|
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 (
|
var (
|
||||||
@ -102,7 +102,7 @@ import (
|
|||||||
{{end}} "go-micro.dev/v4"
|
{{end}} "go-micro.dev/v4"
|
||||||
log "go-micro.dev/v4/logger"{{if .Jaeger}}
|
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 (
|
var (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
module go-micro.dev/cmd/gomu
|
module github.com/asim/go-micro/cmd/gomu
|
||||||
|
|
||||||
go 1.16
|
go 1.16
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go-micro.dev/cmd/gomu/cmd"
|
"github.com/asim/go-micro/cmd/gomu/cmd"
|
||||||
|
|
||||||
// register commands
|
// register commands
|
||||||
_ "go-micro.dev/cmd/gomu/cmd/cli"
|
_ "github.com/asim/go-micro/cmd/gomu/cmd/cli"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user