mirror of
https://github.com/juanfont/headscale.git
synced 2025-11-07 12:52:52 -05:00
Port integration tests routes CLI to v2
Fix options signature
This commit is contained in:
committed by
Kristoffer Dalby
parent
946d38e5d7
commit
52862b8a22
@@ -77,6 +77,12 @@ var listRoutesCmd = &cobra.Command{
|
||||
return
|
||||
}
|
||||
|
||||
if output != "" {
|
||||
SuccessOutput(response.Routes, "", output)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
routes = response.Routes
|
||||
} else {
|
||||
response, err := client.GetMachineRoutes(ctx, &v1.GetMachineRoutesRequest{
|
||||
@@ -92,6 +98,12 @@ var listRoutesCmd = &cobra.Command{
|
||||
return
|
||||
}
|
||||
|
||||
if output != "" {
|
||||
SuccessOutput(response.Routes, "", output)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
routes = response.Routes
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user