mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 00:35:18 +00:00
26 lines
418 B
Go
26 lines
418 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
|
||
|
"github.com/cosmos/cosmos-sdk/server"
|
||
|
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
|
||
|
|
||
|
"github.com/kava-labs/kava/app"
|
||
|
"github.com/kava-labs/kava/cmd/kava/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)
|
||
|
}
|
||
|
}
|
||
|
}
|