Open paulyuk opened 1 year ago
I found that writing like this (no space in template name) worked:
func new --template 'TimerTrigger' --language python --name capture-beautiful-data
This might be a good place to find reference-values for different triggers: https://learn.microsoft.com/en-us/azure/azure-functions/add-bindings-existing-function?tabs=python#manually-add-bindings-based-on-examples
@shreyabatra4
core tools version: 4.0.4829 (x64 on rosetta to use python) OS: MacOs Montery 12.6 (Mac M1 Pro)
If I use
func new
with no arguments there is a nice TUI that has me select the functions templates, and those are numbered.I tried then the following using the
func templates list
+func new --template 'Timer trigger'
. I was a bit confused because it prompts for a template number, which func templates list does not show, but then name was filled in. This is just minor confusion because it went on to work. But if I had something invalid I would have been more confused.I simply suggest a change to the CLI output text to say "Functions template name:" instead of "Select a number of a template:". If template number is a thing we should consider returning a table from list that has both the name and number.
Details: