summaryrefslogtreecommitdiff
path: root/icktool
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-10-16 21:45:51 +0300
committerLars Wirzenius <liw@liw.fi>2017-10-16 21:45:51 +0300
commit947bec6efd7c0753901c08fe4a854ddea96caa5a (patch)
tree4dc47be49b1571dac3b720cf0afb6c7c0744c10f /icktool
parent726d37ff1b253bf18e845e0f16fb4877d53e2fa2 (diff)
downloadick2-947bec6efd7c0753901c08fe4a854ddea96caa5a.tar.gz
Add: icktool show-project
Diffstat (limited to 'icktool')
-rwxr-xr-xicktool5
1 files changed, 5 insertions, 0 deletions
diff --git a/icktool b/icktool
index 0a2ae36..c700a28 100755
--- a/icktool
+++ b/icktool
@@ -112,6 +112,11 @@ class Icktool(cliapp.Application):
sys.stderr.write(text)
sys.exit(1)
+ def cmd_show_project(self, args):
+ name = args[0]
+ api = self._new_api()
+ self._prettyson(api.get('/projects/{}'.format(name)))
+
def _new_token(self):
scopes = self.settings['scope']
cmd = self.settings['token-private-key-cmd']