Azure / azure-functions-powershell-worker

PowerShell language worker for Azure Functions.
MIT License
204 stars 53 forks source link

Feature Request: Recursive Directory Searching for function.json #1042

Open shawnwildermuth opened 7 months ago

shawnwildermuth commented 7 months ago

This is currently on the nodejs and the python function roadmap and I'd love to see it here. I have clients that need this funcitonality. To be specific:

This works:

app/
├─ SomeFunction
│  ├─ function.json
│  ├─ run.ps1
├─ Other Function
│  ├─ function.json
│  ├─ run.ps1

I think this should:

app/
│  ├─ functions
│  ├─ SomeFunction
│  │  ├─ function.json
│  │  ├─ run.ps1
│  ├─ Other Function
│  │  ├─ function.json
│  │  ├─ run.ps1

I'd be happy for a special subfolder called functions/ if that is easier or to be able to configure the root of your function would work too, but recursive search I think would be best.

Francisco-Gamino commented 6 months ago

@shawnwildermuth -- Thank you for reaching out. We are working on a new programming model for PowerShell Functions in which would recursively search for all your PowerShell files starting at the function app root. I will update this issue once the new programming model is on public preview.