summaryrefslogtreecommitdiff
path: root/icktool
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-10-16 21:03:22 +0300
committerLars Wirzenius <liw@liw.fi>2017-10-16 21:03:22 +0300
commit535a1408ae09cda294bbd9895272fb336989f159 (patch)
tree4a8f3eb633bf6e7344693c1386e97dbf74547c72 /icktool
parent36a2b7cf4f38ee3ac837eb12213658cb2362baa2 (diff)
downloadick2-535a1408ae09cda294bbd9895272fb336989f159.tar.gz
Add: icktool scope subcommand
Diffstat (limited to 'icktool')
-rwxr-xr-xicktool4
1 files changed, 4 insertions, 0 deletions
diff --git a/icktool b/icktool
index 09fc0d8..caff5fb 100755
--- a/icktool
+++ b/icktool
@@ -78,6 +78,10 @@ class Icktool(cliapp.Application):
if not self.settings['verify-tls']:
logging.captureWarnings(True)
+ def cmd_scopes(self, args):
+ for scope in self.settings['scope']:
+ sys.stdout.write('{}\n'.format(scope))
+
def cmd_token(self, args):
token = self._new_token()
sys.stdout.write(token)