feat: pass argument to main function
fixes #3
A very small change, we could expand it further if need arises
:+1: thanks @saintsebastian
I am contemplating how to make using the package as a library easier, maybe wrapping current code in bin/create-webextension in a function with optional argument?
@rpl i moved console.log to bin/create-webextenion so main is 'quiet', does that work as intended? i don't know whether adding parameters should be done here or when i'll write test for main
@rpl Thanks for the review, i tried to add the behavior you were talking about. In case of onlyInstancesOf i chose to log the trace and exit with code 1 to avoid Unhandled Promise Rejection.
I also added dummy test for onlyInstancesOf to start with.
hey @rpl! I added some tests and tried to address the thing in your review. Some tests are a bit clunky, so i would appreciate your opinion.