yq/scripts/generate-man-page.sh

11 lines
245 B
Bash
Raw Normal View History

2021-10-14 22:51:42 +00:00
#! /bin/bash
set -e
2023-09-18 23:52:36 +00:00
# note that this requires pandoc to be installed.
2021-10-14 22:51:42 +00:00
2021-10-14 23:39:33 +00:00
pandoc \
--variable=title:"YQ" \
--variable=section:"1" \
--variable=author:"Mike Farah" \
2021-10-20 04:01:08 +00:00
--variable=header:"${MAN_HEADER}" \
--standalone --to man man.md -o yq.1