mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-11-23 22:15:47 +00:00
This is the quasi-standard and fixes the error below:
```
$ go get -u github.com/planetmint/planetmint-go@v0.1.0
go: github.com/planetmint/planetmint-go@v0.1.0: parsing go.mod:
module declares its path as: planetmint-go
but was required as: github.com/planetmint/planetmint-go
```
Signed-off-by: Julian Strobl <jmastr@mailbox.org>
25 lines
454 B
Go
25 lines
454 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/cosmos/cosmos-sdk/server"
|
|
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
|
|
|
|
"github.com/planetmint/planetmint-go/app"
|
|
"github.com/planetmint/planetmint-go/cmd/planetmint-god/cmd"
|
|
)
|
|
|
|
func main() {
|
|
rootCmd, _ := cmd.NewRootCmd()
|
|
if err := svrcmd.Execute(rootCmd, "", app.DefaultNodeHome); err != nil {
|
|
switch e := err.(type) {
|
|
case server.ErrorCode:
|
|
os.Exit(e.Code)
|
|
|
|
default:
|
|
os.Exit(1)
|
|
}
|
|
}
|
|
}
|