sonr/cmd/sonrd/main.go
Prad Nukala 81b9c99222 feat: add Usage: pkl [OPTIONS] COMMAND [ARGS]...
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
2024-09-05 16:38:44 -04:00

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)
}
}