Skip to content

Commit 031f744

Browse files
v7: Rename flag from --orglevel to --org-level for cf routes command
[finishes #172547785] Co-authored-by: Sarah Weinstein <sweinstein@pivotal.io> Co-authored-by: Merric de Launey <mdelauney@pivotal.io>
1 parent ef8db05 commit 031f744

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

command/v7/routes_command.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import (
1212
type RoutesCommand struct {
1313
BaseCommand
1414

15-
usage interface{} `usage:"CF_NAME routes [--orglevel]"`
15+
usage interface{} `usage:"CF_NAME routes [--org-level]"`
1616
relatedCommands interface{} `related_commands:"check-route, domains, map-route, unmap-route"`
17-
Orglevel bool `long:"orglevel" description:"List all the routes for all spaces of current organization"`
17+
Orglevel bool `long:"org-level" description:"List all the routes for all spaces of current organization"`
1818
Labels string `long:"labels" description:"Selector to filter routes by labels"`
1919
}
2020

integration/v7/isolated/routes_command_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ var _ = Describe("routes command", func() {
2525
Eventually(session).Should(Say(`\n`))
2626

2727
Eventually(session).Should(Say(`USAGE:`))
28-
Eventually(session).Should(Say(`cf routes \[--orglevel\]\n`))
28+
Eventually(session).Should(Say(`cf routes \[--org-level\]\n`))
2929
Eventually(session).Should(Say(`\n`))
3030

3131
Eventually(session).Should(Say(`OPTIONS:`))
32-
Eventually(session).Should(Say(`--orglevel\s+List all the routes for all spaces of current organization`))
32+
Eventually(session).Should(Say(`--org-level\s+List all the routes for all spaces of current organization`))
3333
Eventually(session).Should(Say(`\n`))
3434

3535
Eventually(session).Should(Say(`SEE ALSO:`))
@@ -126,7 +126,7 @@ var _ = Describe("routes command", func() {
126126

127127
When("fetching routes by org", func() {
128128
It("lists all the routes in the org", func() {
129-
session := helpers.CF("routes", "--orglevel")
129+
session := helpers.CF("routes", "--org-level")
130130
Eventually(session).Should(Say(`Getting routes for org %s as %s\.\.\.`, orgName, userName))
131131
Eventually(session).Should(Say(`space\s+host\s+domain\s+path\s+apps`))
132132

strings/excluded.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@
546546
"service-auth-tokens",
547547
"passwd",
548548
"restage",
549-
"orglevel",
549+
"org-level",
550550
"logout",
551551
"purge-service-instance",
552552
"unbind-service",

0 commit comments

Comments
 (0)