From 30864478fe6c1d01fd85dc83334a2b2af6d336bf Mon Sep 17 00:00:00 2001 From: RedYetiDev <38299977+RedYetiDev@users.noreply.github.com> Date: Sat, 16 Nov 2024 10:23:19 -0500 Subject: [PATCH] chore: allow `man-page` from non-CLI --- src/generators/man-page/index.mjs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/generators/man-page/index.mjs b/src/generators/man-page/index.mjs index 5a5ca47..c36ad5a 100644 --- a/src/generators/man-page/index.mjs +++ b/src/generators/man-page/index.mjs @@ -72,7 +72,11 @@ export default { .replace('__OPTIONS__', output.options) .replace('__ENVIRONMENT__', output.env); - await writeFile(options.output, filledTemplate); + if (options.output) { + await writeFile(options.output, filledTemplate); + } + + return filledTemplate; }, };