Skip to content

Commit 4808ea9

Browse files
author
Matthew Fisher
committed
feat(client): add --app option to apps:run
All of the other apps commands have a --app option. This commit introduces that option to the apps:run command as well. fixes #722
1 parent c205210 commit 4808ea9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

client/deis.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,9 @@ def apps_run(self, args):
600600
601601
Usage: deis apps:run <command>...
602602
"""
603-
app = self._session.app
603+
app = args.get('--app')
604+
if not app:
605+
app = self._session.app
604606
body = {'command': ' '.join(sys.argv[2:])}
605607
response = self._dispatch('post',
606608
"/api/apps/{}/run".format(app),

0 commit comments

Comments
 (0)