/
main.py
23 lines (23 loc) · 868 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# ok so here we go this program just has to launch some other programs in this
# folder
import sys
# if a program hasn't been specified as the first argument, say so
if(len(sys.argv) < 2):
print('Choose a subprogram!')
# oh ok good the user knows what they want
else:
# oh cool this program can get github organization data
if (sys.argv[1] == 'orgs'):
import gh_orgs
# SAY WHAT? this program can run a server
elif (sys.argv[1] == 'serve'):
import rb_serv_runner
# OH HEY, YOU STOP THAT. and start compiling a java program, please
elif (sys.argv[1] == 'compile'):
import java_compiler_runner
# OH HEY WHAT? now we can run that java program
elif (sys.argv[1] == 'java'):
import java_program_runner
# oh cool this program isn't a program, let's say so
else:
print('Invalid subprogram!')