Hi There,
I have been using the output of
hugo new --kind ARCHETYPE PATH/TO/FILE.md
to retrieve the filepath of the file created in an automation. However, I noticed that this behavior has changed after the archetype re-implementation Pull Request. and my automation now breaks. To be more precise, line 103 of hugo/create/content.go has been removed. For the moment I am using v0.88.1.
Example
EVENT_FILE_PATH=$(hugo new --kind EXAMPLE events/example/${FILENAME}.md | awk '{print $1}')
[[ -f "${EVENT_FILE_PATH}" ]] || exit 1
My question is: is this a bug or a planned change of behavior? Should I refactor my automation and avoid relying on Hugo CLI output?
Thansk a lot!