1
0
Fork 0

added post install task printing

This commit is contained in:
Kim, Jimin 2022-03-15 10:54:04 +09:00
parent cad2612067
commit 7a499e8e42

View file

@ -18,8 +18,19 @@ def choose_action():
]
)
post_install_tasks = []
for action_name in response["actions"]:
module = import_file(action_name, f"src/setup/{action_name}")
# todo: deal with module.post_install
if hasattr(module, "post_install"):
if isinstance(module.post_install, str):
post_install_tasks.append(module.post_install)
else:
post_install_tasks += module.post_install
log(f"Setting up: {module.name} ({action_name})")
module.setup()
print("POST INStALL TASKS:")
for post_install_task in post_install_tasks:
print(f"- {post_install_task}")