CLI stuff should be in the cmd/ path
This commit is contained in:
parent
77e5255fdd
commit
7646bd8fd4
3 changed files with 71 additions and 65 deletions
|
@ -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)
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue