mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-11 18:17:40 +00:00
CLI stuff should be in the cmd/ path
This commit is contained in:
@@ -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)
|
||||
},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user