cmd/route-cli: fix build

This commit is contained in:
Cadey Ratio 2017-12-02 18:03:27 -08:00
parent ce8c3c8a56
commit 76a4931554
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ var (
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")
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")
@ -224,7 +224,7 @@ retry_netrc:
case "route inspect":
r, err := rc.Get(context.Background(), &proto.GetRouteRequest{
Host: *routesCreateDomain,
Id: *routesInspectID,
})
if err != nil {
ln.FatalErr(ctx, err, ln.Action("get single route"), ln.F{"domain": *routesCreateDomain})