Azure / Azure/azure-functions-core-tools

Make sure default trigger name is unique

Open
#3,262 1 comment 0 reactions 0 assignees View on GitHub
area: func new feature good first issue
Dominant language
C#
Stars
1.5k
Forks
498
Avg merge
4d 20h
Merged PRs (30d)
14

Description

For `func new`, if users don't pass in a name, the default is trigger name, like "HttpTrigger". If a trigger with this name already existed, users would be asked about overwriting. But if the intention wasn't to overwrite (because the user didn't know about the default name), they'd have to cancel and start again. It could get annoying if they forget that the default name is the same each time and need to cancel and restart.

VSCode currently increments trigger name automatically to ensure there's no duplicate.

Contributor guide

Open the contributing guide

Research direction

Start with the `func new` command and trace how the default trigger name, such as "HttpTrigger", is chosen before the overwrite prompt. Compare the behavior with VSCode's automatic incrementing; done means an omitted name receives a unique trigger name without asking to overwrite an existing trigger unexpectedly.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.