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.

26 lines
417 B

  1. package main
  2. import (
  3. "os"
  4. "go-dht/cmd"
  5. log "github.com/sirupsen/logrus"
  6. "github.com/urfave/cli"
  7. )
  8. func main() {
  9. app := cli.NewApp()
  10. app.Name = "go-dht"
  11. app.Version = "0.0.1-alpha"
  12. app.Flags = []cli.Flag{
  13. cli.StringFlag{Name: "config"},
  14. }
  15. app.Commands = []cli.Command{}
  16. app.Commands = append(app.Commands, cmd.NodeCommands...)
  17. err := app.Run(os.Args)
  18. if err != nil {
  19. log.Error(err.Error())
  20. }
  21. }