You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
629 B

  1. package main
  2. import (
  3. "fmt"
  4. "os"
  5. "github.com/tendermint/tendermint/config"
  6. )
  7. func main() {
  8. args := os.Args[1:]
  9. if len(args) == 0 {
  10. fmt.Println(`Tendermint
  11. Commands:
  12. daemon Run the tendermint node daemon
  13. gen_account Generate new account keypair
  14. gen_validator Generate new validator keypair
  15. probe_upnp Test UPnP functionality
  16. `)
  17. return
  18. }
  19. switch args[0] {
  20. case "daemon":
  21. config.ParseFlags(args[1:])
  22. daemon()
  23. case "gen_account":
  24. gen_account()
  25. case "gen_validator":
  26. gen_validator()
  27. case "probe_upnp":
  28. probe_upnp()
  29. default:
  30. fmt.Printf("Unknown command %v\n", args[0])
  31. }
  32. }