CLI stuff should be in the cmd/ path

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

No files matched your search

+2 -1
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)
},
}