mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
24 lines
514 B
Go
24 lines
514 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"cosmossdk.io/log"
|
|
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"
|
|
_ "github.com/joho/godotenv/autoload"
|
|
|
|
"github.com/onsonr/sonr/app"
|
|
"github.com/onsonr/sonr/app/cli"
|
|
)
|
|
|
|
func main() {
|
|
rootCmd := NewRootCmd()
|
|
rootCmd.AddCommand(cli.NewBuildTxnTUICmd())
|
|
rootCmd.AddCommand(cli.NewExplorerTUICmd())
|
|
|
|
if err := svrcmd.Execute(rootCmd, "", app.DefaultNodeHome); err != nil {
|
|
log.NewLogger(rootCmd.OutOrStderr()).Error("failure when running app", "err", err)
|
|
os.Exit(1)
|
|
}
|
|
}
|