Skip to content

Commit 5f281ac

Browse files
committed
feat: pdf output capability
1 parent 4d01669 commit 5f281ac

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,12 @@ Options:
100100
Use SSO/OAuth dialog instead of specifying a
101101
username and password for Logilica access
102102
[default: email]
103-
-O, --output, --output-type [gdoc|console|images-only|markdown|html|markdown-with-refs|html-with-refs]
103+
-O, --output, --output-type [pdf|gdoc|console|images-only|markdown|html|markdown-with-refs|html-with-refs]
104104
Output format of how individual PDF file is
105105
processed:
106106
107+
pdf: Don't process files, keep PDFs.
108+
107109
gdoc: HTML with an embedded image
108110
representing whole dashboard and stored as a
109111
Google Doc on Google Drive

logilica_cli/weekly_report.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"-O",
4949
type=click.Choice(
5050
[
51+
"pdf",
5152
"gdoc",
5253
"console",
5354
"images-only",
@@ -62,6 +63,8 @@
6263
show_default=True,
6364
help="""Output format of how individual PDF file is processed:
6465
66+
pdf: Don't process files, keep PDFs.
67+
6568
gdoc: HTML with an embedded image representing whole dashboard and stored
6669
as a Google Doc on Google Drive
6770
@@ -167,6 +170,9 @@ def weekly_report(
167170
teams=configuration["teams"], base_dir_path=downloads_temp_dir
168171
)
169172

173+
if output == "pdf":
174+
return
175+
170176
converter = PDFConvert(
171177
output_dir_path=output_dir_path,
172178
download_dir_path=downloads_temp_dir,

0 commit comments

Comments
 (0)