package main import ( "os" "path/filepath" cmd "git.cw.tr/mukan-network/mukan-consensus/cmd/cometbft/commands" "git.cw.tr/mukan-network/mukan-consensus/cmd/cometbft/commands/debug" cfg "git.cw.tr/mukan-network/mukan-consensus/config" "git.cw.tr/mukan-network/mukan-consensus/libs/cli" nm "git.cw.tr/mukan-network/mukan-consensus/node" ) func main() { rootCmd := cmd.RootCmd rootCmd.AddCommand( cmd.GenValidatorCmd, cmd.InitFilesCmd, cmd.LightCmd, cmd.ReplayCmd, cmd.ReplayConsoleCmd, cmd.ResetAllCmd, cmd.ResetPrivValidatorCmd, cmd.ResetStateCmd, cmd.ShowValidatorCmd, cmd.TestnetFilesCmd, cmd.ShowNodeIDCmd, cmd.ReIndexEventCmd, cmd.GenNodeKeyCmd, cmd.VersionCmd, cmd.RollbackStateCmd, cmd.CompactGoLevelDBCmd, cmd.InspectCmd, debug.DebugCmd, cli.NewCompletionCmd(rootCmd, true), ) // NOTE: // Users wishing to: // * Use an external signer for their validators // * Supply an in-proc abci app // * Supply a genesis doc file from another source // * Provide their own DB implementation // can copy this file and use something other than the // DefaultNewNode function nodeFunc := nm.DefaultNewNode // Create & start node rootCmd.AddCommand(cmd.NewRunNodeCmd(nodeFunc)) cmd := cli.PrepareBaseCmd(rootCmd, "CMT", os.ExpandEnv(filepath.Join("$HOME", cfg.DefaultTendermintDir))) if err := cmd.Execute(); err != nil { panic(err) } }