lithin/serverless-run-function-plugin

Consistent 'function' CLI paramater

Closed this issue · 1 comments

dsole commented

Thanks for the plugin.
Can I suggest that the "functionName" CLI parameter be renamed to "function" so that it is consistent with the built-in "invoke" command ?

That way I can interchange between
serverless invoke --function hello
and
serverless run --function hello

We've actually had a whole discussion about this in our company :) What serverless refers to as a "function" keeps changing all the time - sometimes it's an artefact of it, sometimes it's an object with some info about the function, sometimes it's the name...

I agree that they should be the same but I feel functionName is more precise. I'm happy to be proven wrong though ;)