Skip to content

Commit 0986060

Browse files
committed
🎨 Styile: print completion message in the terminal
1 parent 45ba1e0 commit 0986060

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

src/vuegen/__main__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from pathlib import Path
33

44
from vuegen import report_generator
5-
from vuegen.utils import get_logger, get_parser
5+
from vuegen.utils import get_logger, get_parser, print_completion_message
66

77

88
def main():
@@ -47,6 +47,8 @@ def main():
4747
streamlit_autorun=streamlit_autorun,
4848
)
4949

50+
# Print completion message
51+
print_completion_message(report_type)
5052

5153
if __name__ == "__main__":
5254
main()

src/vuegen/utils.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,45 @@ def get_logger(log_suffix):
743743

744744
return logger
745745

746+
def print_completion_message(report_type: str):
747+
"""
748+
Prints a formatted completion message after report generation.
749+
"""
750+
border = "─" * 65 # Creates a separator line
751+
print(f"\n{border}\n🎉 Pipeline Execution Complete! 🎉\n")
752+
753+
if report_type == "streamlit":
754+
print(
755+
"""🚀 Streamlit Report Generated!
756+
757+
📂 All scripts to build the Streamlit app are available at:
758+
nf_container_results/streamlit_report/sections
759+
760+
▶️ To run the Streamlit app, use the following command:
761+
streamlit run nf_container_results/streamlit_report/sections/report_manager.py
762+
763+
✨ You can extend the report by adding new files to the input directory or updating the config file.
764+
765+
🛠️ Advanced users can modify the Python scripts directly in:
766+
nf_container_results/streamlit_report/sections
767+
"""
768+
)
769+
else:
770+
print(
771+
f"""🚀 {report_type.capitalize()} Report Generated!
772+
773+
📂 Your {report_type} report is available at:
774+
nf_container_results/quarto_report
775+
776+
✨ You can extend the report by adding new files to the input directory or updating the config file.
777+
778+
🛠️ Advanced users can modify the report template directly in:
779+
nf_container_results/quarto_report/quarto_report.qmd
780+
"""
781+
)
782+
783+
print(border)
784+
746785

747786
## REPORT FORMATTING
748787
def generate_footer() -> str:

0 commit comments

Comments
 (0)