Review from Igor

This commit is contained in:
Adam Chalmers 2021-01-08 15:10:36 -06:00
parent b601b24f52
commit 94ca4f98dd
1 changed files with 18 additions and 15 deletions

View File

@ -20,9 +20,10 @@ func buildRouteIPSubcommand() *cli.Command {
Usage: "Configure and query private routes", Usage: "Configure and query private routes",
UsageText: "cloudflared tunnel [--config FILEPATH] route COMMAND [arguments...]", UsageText: "cloudflared tunnel [--config FILEPATH] route COMMAND [arguments...]",
Hidden: true, Hidden: true,
Description: `cloudflared can provision private routes from Cloudflare to origins in your corporate Description: `cloudflared can provision private routes from your private IP space to origins
network. Users enrolled in your Cloudflare for Teams organization can reach those routes through the in your corporate network. Users enrolled in your Cloudflare for Teams organization can reach
Cloudflare WARP client. You can also build rules to determine who can reach certain routes. those routes through the Cloudflare Warp client. You can also build rules to determine who
can reach certain routes.
`, `,
Subcommands: []*cli.Command{ Subcommands: []*cli.Command{
{ {
@ -30,8 +31,9 @@ func buildRouteIPSubcommand() *cli.Command {
Action: cliutil.ErrorHandler(addRouteCommand), Action: cliutil.ErrorHandler(addRouteCommand),
Usage: "Add a new Teamnet route to the table", Usage: "Add a new Teamnet route to the table",
UsageText: "cloudflared tunnel [--config FILEPATH] route ip add [CIDR] [TUNNEL] [COMMENT?]", UsageText: "cloudflared tunnel [--config FILEPATH] route ip add [CIDR] [TUNNEL] [COMMENT?]",
Description: `Adds a private route from a given Tunnel (identified by name or Description: `Adds a private route to a CIDR in your private IP space. Requests will
UUID) to a given CIDR in your private IP space.`, be sent through the Cloudflare Warp client running on a user's machine, proxied
through the specified tunnel, and reach an IP in the given CIDR.`,
}, },
{ {
Name: "show", Name: "show",
@ -53,7 +55,8 @@ func buildRouteIPSubcommand() *cli.Command {
Action: cliutil.ErrorHandler(getRouteByIPCommand), Action: cliutil.ErrorHandler(getRouteByIPCommand),
Usage: "Check which row of the routing table matches a given IP", Usage: "Check which row of the routing table matches a given IP",
UsageText: "cloudflared tunnel [--config FILEPATH] route ip get [IP]", UsageText: "cloudflared tunnel [--config FILEPATH] route ip get [IP]",
Description: `Checks which row of the routing table matches a given IP. This helps check and validate your config.`, Description: `Checks which row of the routing table will be used to proxy a given IP.
This helps check and validate your config.`,
}, },
}, },
} }