noraj / OSCP-Exam-Report-Template-Markdown

:orange_book: Markdown Templates for Offensive Security OSCP, OSWE, OSCE, OSEE, OSWP exam report
https://noraj.github.io/OSCP-Exam-Report-Template-Markdown/
MIT License
3.56k stars 752 forks source link

Add a resource_path option #50

Closed glefait closed 9 months ago

glefait commented 9 months ago

A new -r option is added to supplement --resource-path with the provided value (could be a single or several paths).

It helps when an arbitrary directory not inside .:src is used.

In my case, I'm using:

EXAM_BASEDIR=${HOME}/[...]/certs/pen-210/exam/2024-02-02
ruby osert.rb generate \
    -i ${EXAM_BASEDIR}/OSWP-exam-report-template_OS_v1.md \
    -o ${EXAM_BASEDIR}/output \
    -s XXXXXXXX \
    -e OSWP-OS  \
    -r ${EXAM_BASEDIR}/input
noraj commented 9 months ago

Thanks for the suggestion. I introduced it that way 9554792deae6a357262f9036f971290a1a3ec94d. Reading the pandoc doc, the last call to --resource-path= will be the first loaded. There was duplicate in path loaded, and added better clarity in FAQ and help message.

image

glefait commented 9 months ago

Thanks !