serverless / serverless-azure-functions

Serverless Azure Functions Plugin – Add Azure Functions support to the Serverless Framework
MIT License
267 stars 162 forks source link

feat: Allow additional arguments to spawned start process #382

Closed tbarlow12 closed 5 years ago

tbarlow12 commented 5 years ago

What did you implement:

Allow users to pass additional arguments to spawned func host start process when running sls offline

Closes #365

How did you implement it:

Created new option spawnargs (shortcut a) that takes a whitespace separated string containing additional arguments for new process.

IMPORTANT - PR is targeting linux & python support branch because of the significant changes to the way we use core tools within the plugin. That branch has a more forward facing approach to generalizing the use of azure-functions-core-tools and made more sense to branch off of it for this issue.

How can we verify it:

Run

sls offline -a "--cors *"

Rather than func host start being spawned, func host start --cors * is spawned.

Todos:

Note: Run npm run test:ci to run all validation checks on proposed changes

Is this ready for review?: YES Is it a breaking change?: NO