Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
feat(client): add --app option to apps:run
Browse files Browse the repository at this point in the history
All of the other apps commands have a --app option. This commit
introduces that option to the apps:run command as well.

fixes #722
  • Loading branch information
Matthew Fisher committed May 6, 2014
1 parent c205210 commit 4808ea9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/deis.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,9 @@ def apps_run(self, args):
Usage: deis apps:run <command>...
"""
app = self._session.app
app = args.get('--app')
if not app:
app = self._session.app
body = {'command': ' '.join(sys.argv[2:])}
response = self._dispatch('post',
"/api/apps/{}/run".format(app),
Expand Down

0 comments on commit 4808ea9

Please sign in to comment.