Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The template list provided by
func templates list
confused me when I used the template names withfunc function new --template
command because neither of them worked. After looking into the tool's code, I learnt they can be used only within in-process model Functions projects, and we need to specify the--csx
option. I also learnt that the tool usesdotnet new
templates for the newer C# templates although thefunc templates list
command does list the templates fromdotnet new
.As the tool has complexity due to the two template management systems behind the scenes, it should be more self-explanatory and provide clear guidance to users.
This PR adds notes to the tool's outputs, assuming that the most recommended approach is to start simply with
func function new
without specifying the--template
option. There are no functional changes.It should effectively resolve #2955
Changes
Command 'func templates list'
The command will have two lines of notes under the C# template list.
Command 'func function new --template' with Template Name from 'func templates list'
The command will output the error message:
Command 'func function new --template' with Invalid Template Name
The command will output the error message:
Pull request checklist