-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli_updated.py
More file actions
25 lines (20 loc) · 1.02 KB
/
cli_updated.py
File metadata and controls
25 lines (20 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import argparse
import os
from logicapp_docgen.core import generate_document_from_arm
def main():
parser = argparse.ArgumentParser(description="Logic App Documentation Generator")
parser.add_argument("--template", required=True, help="Path to ARM template file (e.g., template.json)")
parser.add_argument("--parameters", required=False, help="Path to parameters file (optional)")
parser.add_argument("--docx_template", required=False, help="Path to a Word .docx template (optional, not used yet)")
parser.add_argument("--output", default="output/logicapp_document.docx", help="Output Word document path")
args = parser.parse_args()
print(f"📄 Generating documentation from ARM template: {args.template}")
output_path = generate_document_from_arm(
template_path=args.template,
output_path=args.output,
parameters_path=args.parameters,
docx_template_path=args.docx_template
)
print(f"✅ Document created at: {output_path}")
if __name__ == "__main__":
main()