mirror of
https://github.com/juanfont/headscale.git
synced 2026-11-02 03:34:06 +09:00
CLI stuff should be in the cmd/ path
This commit is contained in:
1 parent
77e5255fdd
commit
7646bd8fd4
3 files changed
+71
-65
No files matched your search
@@ -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