summaryrefslogtreecommitdiff
path: root/bonafide/src
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-10-27 09:57:42 -0400
committerKali Kaneko <kali@leap.se>2015-10-27 09:57:42 -0400
commitd39d5d9ac81abaa2e0efde448f8bcf7f618a0292 (patch)
treecfbe7b23dec57877ae45661b33567c0c56a9adc0 /bonafide/src
parentb8ce26e69e15aa6f7786f7761ce30047d6a71906 (diff)
add bonafide_cli entrypoint
Diffstat (limited to 'bonafide/src')
-rwxr-xr-xbonafide/src/leap/bonafide/bonafide_cli.py (renamed from bonafide/src/leap/bonafide/bonafide_cli)6
1 files changed, 5 insertions, 1 deletions
diff --git a/bonafide/src/leap/bonafide/bonafide_cli b/bonafide/src/leap/bonafide/bonafide_cli.py
index 15a7a00..30cae6a 100755
--- a/bonafide/src/leap/bonafide/bonafide_cli
+++ b/bonafide/src/leap/bonafide/bonafide_cli.py
@@ -85,7 +85,7 @@ def run_command(command, _provider, username, password):
d.addBoth(_cbShutDown)
reactor.run()
-if __name__ == '__main__':
+def main():
color_init()
description = (Fore.YELLOW + 'Manage and configure a LEAP Account '
'using the bonafide protocol.' + Fore.RESET)
@@ -98,3 +98,7 @@ if __name__ == '__main__':
password = getpass(
Fore.BLUE + '%s@%s password:' % (ns.username, ns.provider) + Fore.RESET)
run_command(ns.command, ns.provider, ns.username, password)
+
+
+if __name__ == '__main__':
+ main()