mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
Options: -v, --version Show the version and exit -h, --help Show this message and exit Commands: eval Render pkl module(s) repl Start a REPL session server Run as a server that communicates over standard input/output test Run tests within the given module(s) project Run commands related to projects download-package Download package(s) For more information, visit https://pkl-lang.org/main/0.26.3/pkl-cli/index.html#usage directory for message and transaction prototypes
23 lines
476 B
Go
23 lines
476 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/internal/tui"
|
|
)
|
|
|
|
func main() {
|
|
rootCmd := NewRootCmd()
|
|
rootCmd.AddCommand(tui.NewBuildProtoMsgCmd())
|
|
|
|
if err := svrcmd.Execute(rootCmd, "", app.DefaultNodeHome); err != nil {
|
|
log.NewLogger(rootCmd.OutOrStderr()).Error("failure when running app", "err", err)
|
|
os.Exit(1)
|
|
}
|
|
}
|