cmd/route-cli: fix build
This commit is contained in:
parent
ce8c3c8a56
commit
76a4931554
|
@ -70,7 +70,7 @@ var (
|
||||||
routesCreateDomain = routesCreate.Flag("domain", "domain for the route (if not given one will be generated for you)").String()
|
routesCreateDomain = routesCreate.Flag("domain", "domain for the route (if not given one will be generated for you)").String()
|
||||||
|
|
||||||
routesInspect = routes.Command("inspect", "inspect one route")
|
routesInspect = routes.Command("inspect", "inspect one route")
|
||||||
routesInspectDomain = routesInspect.Flag("domain", "domain to inspect").Required().String()
|
routesInspectID = routesInspect.Flag("id", "ID of the route to inspect").Required().String()
|
||||||
|
|
||||||
routesList = routes.Command("list", "list all routes owned by you")
|
routesList = routes.Command("list", "list all routes owned by you")
|
||||||
|
|
||||||
|
@ -224,7 +224,7 @@ retry_netrc:
|
||||||
|
|
||||||
case "route inspect":
|
case "route inspect":
|
||||||
r, err := rc.Get(context.Background(), &proto.GetRouteRequest{
|
r, err := rc.Get(context.Background(), &proto.GetRouteRequest{
|
||||||
Host: *routesCreateDomain,
|
Id: *routesInspectID,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ln.FatalErr(ctx, err, ln.Action("get single route"), ln.F{"domain": *routesCreateDomain})
|
ln.FatalErr(ctx, err, ln.Action("get single route"), ln.F{"domain": *routesCreateDomain})
|
||||||
|
|
Loading…
Reference in New Issue