Closed aisensiy closed 8 years ago
Use the --template
option to specify the location of the Mustache template file.
$ ABAO_HOME="/usr/local/lib/node_modules/abao"
$ TEMPLATE="${ABAO_HOME}/templates/hookfile.js"
$ RAML="doc.raml"
$ HOOKS="test_machines_hooks.js"
$ abao "${RAML}" --generate-hooks --template="${TEMPLATE}" > "${HOOKS}"
Thanks, I thought is --template
is not required. Because the README
has no --template
parameter.
Yeah, don't know where that argument's description in the documentation went. I must have run the command I documented from the Abao installation directory; since that's not always the case, I'll see if I can determine the installation location programmatically and default appropriately, or document the solution above.
And get error: