summaryrefslogtreecommitdiffstats
path: root/gamechestcli/__main__.py
diff options
context:
space:
mode:
Diffstat (limited to 'gamechestcli/__main__.py')
-rwxr-xr-xgamechestcli/__main__.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/gamechestcli/__main__.py b/gamechestcli/__main__.py
new file mode 100755
index 0000000..1497e40
--- /dev/null
+++ b/gamechestcli/__main__.py
@@ -0,0 +1,28 @@
+#!/usr/bin/python3
+'''
+Manage games. Install, remove, run them.
+
+Usage: gamechest install <GAME_ID>
+ gamechest remove <GAME_ID>
+ gamechest run --profile_id=<PROFILE_ID> <GAME_ID>
+'''
+
+import docopt
+
+from gamechest.cliactions import install, remove, run
+
+
+def main():
+ args = docopt.docopt(__doc__)
+ #print(args); raise SystemExit(0)
+
+ if args['install']:
+ install.install(args['<GAME_ID>'])
+ elif args['remove']:
+ remove.remove(args['<GAME_ID>'])
+ elif args['run']:
+ run.run(args['<GAME_ID>'], args['--profile_id'])
+
+
+if __name__ == "__main__":
+ main()