added post install task printing
This commit is contained in:
parent
cad2612067
commit
7a499e8e42
1 changed files with 12 additions and 1 deletions
|
@ -18,8 +18,19 @@ def choose_action():
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
post_install_tasks = []
|
||||||
for action_name in response["actions"]:
|
for action_name in response["actions"]:
|
||||||
module = import_file(action_name, f"src/setup/{action_name}")
|
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})")
|
log(f"Setting up: {module.name} ({action_name})")
|
||||||
module.setup()
|
module.setup()
|
||||||
|
|
||||||
|
print("POST INStALL TASKS:")
|
||||||
|
for post_install_task in post_install_tasks:
|
||||||
|
print(f"- {post_install_task}")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue