-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpc.py
More file actions
44 lines (34 loc) · 1.2 KB
/
pc.py
File metadata and controls
44 lines (34 loc) · 1.2 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import json
from pclibs.arguments import Arguments
from pclibs.project import Project
def main():
arguments = Arguments()
config = None
with open("config.json", "r", encoding="utf-8") as configfile:
config = json.load(configfile)
project = Project(arguments, config)
if arguments.create:
print("Criando projeto...")
project_folder = project.create_new()
if arguments.use_javafx:
print("Configurando JavaFX...")
project.configure_javafx()
print("Projeto criado em " + project_folder)
else:
if arguments.compile:
print("Compilando projeto...")
project.compile_project()
if arguments.execute:
print("Executando projeto...")
project.execute()
if arguments.clean:
print("Limpando arquivos *.class...")
project.delete_class_files()
if arguments.zip:
print("Compactando arquivo no .zip...")
project.zip_project()
if arguments.submit:
print("Iniciando processo de envio do email...")
project.send_email()
if __name__ == "__main__":
main()