CLI stuff should be in the cmd/ path

This commit is contained in:
Juan Font Alonso 2021-04-28 16:55:29 +02:00
parent 77e5255fdd
commit 7646bd8fd4
3 changed files with 71 additions and 65 deletions

View file

@ -21,11 +21,12 @@ var ListRoutesCmd = &cobra.Command{
if err != nil {
log.Fatalf("Error initializing: %s", err)
}
err = h.ListNodeRoutes(args[0], args[1])
routes, err := h.GetNodeRoutes(args[0], args[1])
if err != nil {
fmt.Println(err)
return
}
fmt.Println(routes)
},
}