blob: 1497e4060d613d55fe2d587b668f27f346c1a643 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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()
|