Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when using custom template, should look at template path relative to the programs installed location #94

Open
scott-es opened this issue Jul 31, 2020 · 0 comments

Comments

@scott-es
Copy link
Contributor

when trying to use the -t parameter (even with the default template test-report.hbs) after npm install snyk-to-html -g snyk-to-html cannot locate supporting hbs files.

Consider this example:
image

this produces an error because the supporting partial hbs files are not located relative to the working directory, so in order to avoid this error one must supply the entire path of where the application was installed, like:

image

which is very awkward and not friendly for usage in a pipeline.

It would be nice if the application looked into the template directory relative to its installed location, since that appears to be the case when you reference the template name with -t without the full path (it seems to be able to find that, but not its supporting hbs files its using)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant