adobe / create-whisk-action

Node package to automate the repetitive tasks of creating an OpenWhisk action
Apache License 2.0
0 stars 2 forks source link

Support Package when creating action #2

Open clement-del opened 6 years ago

clement-del commented 6 years ago

Expected Behaviour

Openwhisk cli supports actions prefixed with a package name.

Actual Behaviour

create-whisk-action expects a project directory but does not support path delimiter (/).

Reproduce Scenario (including but not limited to)

$ npx create-whisk-action package/doStuff

Could not create a project called "package/doStuff" because of npm naming restrictions: printValidationResults is not defined

Steps to Reproduce

Platform and Version

MacOs, node 6

Sample Code that illustrates the problem

Logs taken while reproducing problem

macdonst commented 6 years ago

@clement-del can you try out the latest from master and let me know if it fits your needs? Running…

npx create-whisk-action a/b

will create package a if it doesn't exist.

clement-del commented 6 years ago

It took a while but I finally took some time to test your fix. I tested from master and it works fine ! do you plan to update the npm repository ?

Thanks again for the useful tool