From 21908c97c1e897554751070d08e2b35694529bc0 Mon Sep 17 00:00:00 2001 From: vg Date: Sun, 18 Sep 2022 20:23:17 +0200 Subject: git-sync on seele --- gamechestcli/__main__.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 gamechestcli/__main__.py (limited to 'gamechestcli/__main__.py') 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 + gamechest remove + gamechest run --profile_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['']) + elif args['remove']: + remove.remove(args['']) + elif args['run']: + run.run(args[''], args['--profile_id']) + + +if __name__ == "__main__": + main() -- cgit v1.2.3