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

package main
import (
"os"
"go-dht/cmd"
log "github.com/sirupsen/logrus"
"github.com/urfave/cli"
)
func main() {
app := cli.NewApp()
app.Name = "go-dht"
app.Version = "0.0.1-alpha"
app.Flags = []cli.Flag{
cli.StringFlag{Name: "config"},
}
app.Commands = []cli.Command{}
app.Commands = append(app.Commands, cmd.NodeCommands...)
err := app.Run(os.Args)
if err != nil {
log.Error(err.Error())
}
}