Skip to content

Commit a00746c

Browse files
committed
✨ Feat: add output_dir as an argument
1 parent eb4e626 commit a00746c

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/vuegen/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def main():
1616
report_type = args.report_type
1717
streamlit_autorun = args.streamlit_autorun
1818
quarto_cheks = args.quarto_checks
19+
output_dir = args.output_dir
1920

2021
# Determine the report name for logger suffix
2122
if config_path:
@@ -46,6 +47,7 @@ def main():
4647
logger=logger,
4748
config_path=config_path,
4849
dir_path=dir_path,
50+
output_dir=output_dir,
4951
streamlit_autorun=streamlit_autorun,
5052
quarto_checks=quarto_cheks,
5153
)

src/vuegen/utils.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,13 @@ def get_parser(prog_name: str, others: dict = {}) -> argparse.Namespace:
225225
default="streamlit",
226226
help="Type of the report to generate (streamlit, html, pdf, docx, odt, revealjs, pptx, or jupyter).",
227227
)
228+
parser.add_argument(
229+
"-output_dir",
230+
"--output_directory",
231+
type=str,
232+
default=None,
233+
help="Path to the output directory for the generated report.",
234+
)
228235
parser.add_argument(
229236
"-st_autorun",
230237
"--streamlit_autorun",
@@ -239,7 +246,6 @@ def get_parser(prog_name: str, others: dict = {}) -> argparse.Namespace:
239246
default=False,
240247
help="Check if Quarto is installed and available for report generation.",
241248
)
242-
243249
# Parse arguments
244250
return parser
245251

0 commit comments

Comments
 (0)