Skip to content

Commit 94ca4f9

Browse files
committed
Review from Igor
1 parent b601b24 commit 94ca4f9

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

cmd/cloudflared/tunnel/teamnet_subcommands.go

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,28 @@ func buildRouteIPSubcommand() *cli.Command {
2020
Usage: "Configure and query private routes",
2121
UsageText: "cloudflared tunnel [--config FILEPATH] route COMMAND [arguments...]",
2222
Hidden: true,
23-
Description: `cloudflared can provision private routes from Cloudflare to origins in your corporate
24-
network. Users enrolled in your Cloudflare for Teams organization can reach those routes through the
25-
Cloudflare WARP client. You can also build rules to determine who can reach certain routes.
23+
Description: `cloudflared can provision private routes from your private IP space to origins
24+
in your corporate network. Users enrolled in your Cloudflare for Teams organization can reach
25+
those routes through the Cloudflare Warp client. You can also build rules to determine who
26+
can reach certain routes.
2627
`,
2728
Subcommands: []*cli.Command{
2829
{
2930
Name: "add",
3031
Action: cliutil.ErrorHandler(addRouteCommand),
3132
Usage: "Add a new Teamnet route to the table",
3233
UsageText: "cloudflared tunnel [--config FILEPATH] route ip add [CIDR] [TUNNEL] [COMMENT?]",
33-
Description: `Adds a private route from a given Tunnel (identified by name or
34-
UUID) to a given CIDR in your private IP space.`,
34+
Description: `Adds a private route to a CIDR in your private IP space. Requests will
35+
be sent through the Cloudflare Warp client running on a user's machine, proxied
36+
through the specified tunnel, and reach an IP in the given CIDR.`,
3537
},
3638
{
37-
Name: "show",
38-
Action: cliutil.ErrorHandler(showRoutesCommand),
39-
Usage: "Show the routing table",
40-
UsageText: "cloudflared tunnel [--config FILEPATH] route ip show [flags]",
39+
Name: "show",
40+
Action: cliutil.ErrorHandler(showRoutesCommand),
41+
Usage: "Show the routing table",
42+
UsageText: "cloudflared tunnel [--config FILEPATH] route ip show [flags]",
4143
Description: `Shows your organization's private route table. You can use flags to filter the results.`,
42-
Flags: teamnet.FilterFlags,
44+
Flags: teamnet.FilterFlags,
4345
},
4446
{
4547
Name: "delete",
@@ -49,11 +51,12 @@ func buildRouteIPSubcommand() *cli.Command {
4951
Description: `Deletes the row for a given CIDR from your routing table`,
5052
},
5153
{
52-
Name: "get",
53-
Action: cliutil.ErrorHandler(getRouteByIPCommand),
54-
Usage: "Check which row of the routing table matches a given IP",
55-
UsageText: "cloudflared tunnel [--config FILEPATH] route ip get [IP]",
56-
Description: `Checks which row of the routing table matches a given IP. This helps check and validate your config.`,
54+
Name: "get",
55+
Action: cliutil.ErrorHandler(getRouteByIPCommand),
56+
Usage: "Check which row of the routing table matches a given IP",
57+
UsageText: "cloudflared tunnel [--config FILEPATH] route ip get [IP]",
58+
Description: `Checks which row of the routing table will be used to proxy a given IP.
59+
This helps check and validate your config.`,
5760
},
5861
},
5962
}

0 commit comments

Comments
 (0)