Skip to content

Commit 9e645f6

Browse files
author
Matthew Fisher
committed
feat(client): add -a option to client
Now you can use -a or --app to specify an application's name.
1 parent c097923 commit 9e645f6

1 file changed

Lines changed: 29 additions & 25 deletions

File tree

client/deis.py

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ def apps_destroy(self, args):
473473
Usage: deis apps:destroy [options]
474474
475475
Options:
476-
--app=<app>
476+
-a --app=<app>
477477
the uniquely identifiable name for the application.
478478
--confirm=<app>
479479
skips the prompt for the application name. <app> is the uniquely identifiable
@@ -542,7 +542,7 @@ def apps_info(self, args):
542542
Usage: deis apps:info [options]
543543
544544
Options:
545-
--app=<app>
545+
-a --app=<app>
546546
the uniquely identifiable name for the application.
547547
"""
548548
app = args.get('--app')
@@ -566,7 +566,7 @@ def apps_open(self, args):
566566
Usage: deis apps:open [options]
567567
568568
Options:
569-
--app=<app>
569+
-a --app=<app>
570570
the uniquely identifiable name for the application.
571571
"""
572572
app = args.get('--app')
@@ -594,7 +594,7 @@ def apps_logs(self, args):
594594
Usage: deis apps:logs [options]
595595
596596
Options:
597-
--app=<app>
597+
-a --app=<app>
598598
the uniquely identifiable name for the application.
599599
"""
600600
app = args.get('--app')
@@ -611,11 +611,15 @@ def apps_run(self, args):
611611
"""
612612
Runs a command inside an ephemeral app container.
613613
614-
Usage: deis apps:run [--app=<app> --] <command>...
614+
Usage: deis apps:run [options] [--] <command>...
615615
616616
Arguments:
617617
<command>
618618
the shell command to run inside the container.
619+
620+
Options:
621+
-a --app=<app>
622+
the uniquely identifiable name for the application.
619623
"""
620624
app = args.get('--app')
621625
if not app:
@@ -804,7 +808,7 @@ def builds_create(self, args):
804808
or from an in-house registry (e.g. myregistry.example.com:5000/example-go).
805809
806810
Options:
807-
--app=<app>
811+
-a --app=<app>
808812
The uniquely identifiable name for the application.
809813
"""
810814
app = args.get('--app')
@@ -833,7 +837,7 @@ def builds_list(self, args):
833837
Usage: deis builds:list [options]
834838
835839
Options:
836-
--app=<app>
840+
-a --app=<app>
837841
the uniquely identifiable name for the application.
838842
"""
839843
app = args.get('--app')
@@ -1062,7 +1066,7 @@ def config_list(self, args):
10621066
Options:
10631067
--oneline
10641068
print output on one line.
1065-
--app=<app>
1069+
-a --app=<app>
10661070
the uniquely identifiable name of the application.
10671071
"""
10681072
app = args.get('--app')
@@ -1108,7 +1112,7 @@ def config_set(self, args):
11081112
the value of said environment variable.
11091113
11101114
Options:
1111-
--app=<app>
1115+
-a --app=<app>
11121116
the uniquely identifiable name for the application.
11131117
"""
11141118
app = args.get('--app')
@@ -1150,7 +1154,7 @@ def config_unset(self, args):
11501154
the variable to remove from the application's environment.
11511155
11521156
Options:
1153-
--app=<app>
1157+
-a --app=<app>
11541158
the uniquely identifiable name for the application.
11551159
"""
11561160
app = args.get('--app')
@@ -1194,7 +1198,7 @@ def config_pull(self, args):
11941198
Usage: deis config:pull [options]
11951199
11961200
Options:
1197-
-a APP --app=<app>
1201+
-a --app=<app>
11981202
The application that you wish to pull from
11991203
-i --interactive
12001204
Prompts for each value to be overwritten
@@ -1260,7 +1264,7 @@ def domains_add(self, args):
12601264
the domain name to be bound to the application, such as `domain.deisapp.com`.
12611265
12621266
Options:
1263-
--app=<app>
1267+
-a --app=<app>
12641268
the uniquely identifiable name for the application.
12651269
"""
12661270
app = args.get('--app')
@@ -1293,7 +1297,7 @@ def domains_remove(self, args):
12931297
the domain name to be removed from the application.
12941298
12951299
Options:
1296-
--app=<app>
1300+
-a --app=<app>
12971301
the uniquely identifiable name for the application.
12981302
"""
12991303
app = args.get('--app')
@@ -1321,7 +1325,7 @@ def domains_list(self, args):
13211325
Usage: deis domains:list [options]
13221326
13231327
Options:
1324-
--app=<app>
1328+
-a --app=<app>
13251329
the uniquely identifiable name for the application.
13261330
"""
13271331
app = args.get('--app')
@@ -1360,7 +1364,7 @@ def ps_list(self, args, app=None):
13601364
Usage: deis ps:list [options]
13611365
13621366
Options:
1363-
--app=<app>
1367+
-a --app=<app>
13641368
the uniquely identifiable name for the application.
13651369
"""
13661370
if not app:
@@ -1397,7 +1401,7 @@ def ps_scale(self, args):
13971401
the number of processes.
13981402
13991403
Options:
1400-
--app=<app>
1404+
-a --app=<app>
14011405
the uniquely identifiable name for the application.
14021406
"""
14031407
app = args.get('--app')
@@ -1572,10 +1576,10 @@ def perms_list(self, args):
15721576
Lists all users with permission to use an app, or lists all users with system
15731577
administrator privileges.
15741578
1575-
Usage: deis perms:list [--app=<app>|--admin]
1579+
Usage: deis perms:list [-a --app=<app>|--admin]
15761580
15771581
Options:
1578-
--app=<app>
1582+
-a --app=<app>
15791583
lists all users with permission to <app>. <app> is the uniquely identifiable name
15801584
for the application.
15811585
--admin
@@ -1593,14 +1597,14 @@ def perms_create(self, args):
15931597
Gives another user permission to use an app, or gives another user
15941598
system administrator privileges.
15951599
1596-
Usage: deis perms:create <username> [--app=<app>|--admin]
1600+
Usage: deis perms:create <username> [-a --app=<app>|--admin]
15971601
15981602
Arguments:
15991603
<username>
16001604
the name of the new user.
16011605
16021606
Options:
1603-
--app=<app>
1607+
-a --app=<app>
16041608
grants <username> permission to use <app>. <app> is the uniquely identifiable name
16051609
for the application.
16061610
--admin
@@ -1626,14 +1630,14 @@ def perms_delete(self, args):
16261630
Revokes another user's permission to use an app, or revokes another user's system
16271631
administrator privileges.
16281632
1629-
Usage: deis perms:delete <username> [--app=<app>|--admin]
1633+
Usage: deis perms:delete <username> [-a --app=<app>|--admin]
16301634
16311635
Arguments:
16321636
<username>
16331637
the name of the user.
16341638
16351639
Options:
1636-
--app=<app>
1640+
-a --app=<app>
16371641
revokes <username> permission to use <app>. <app> is the uniquely identifiable name
16381642
for the application.
16391643
--admin
@@ -1688,7 +1692,7 @@ def releases_info(self, args):
16881692
the release of the application, such as 'v1'.
16891693
16901694
Options:
1691-
--app=<app>
1695+
-a --app=<app>
16921696
the uniquely identifiable name for the application.
16931697
"""
16941698
version = args.get('<version>')
@@ -1711,7 +1715,7 @@ def releases_list(self, args):
17111715
Usage: deis releases:list [options]
17121716
17131717
Options:
1714-
--app=<app>
1718+
-a --app=<app>
17151719
the uniquely identifiable name for the application.
17161720
"""
17171721
app = args.get('--app')
@@ -1738,7 +1742,7 @@ def releases_rollback(self, args):
17381742
the release of the application, such as 'v1'.
17391743
17401744
Options:
1741-
--app=<app>
1745+
-a --app=<app>
17421746
the uniquely identifiable name of the application.
17431747
"""
17441748
app = args.get('--app')

0 commit comments

Comments
 (0)