Azure / Azure/azure-functions-core-tools

Template argument does not work in dotnet(isolated)

Open
#3,177 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.5k
Forks
498
Avg merge
5d 4h
Merged PRs (30d)
15

Description

core tools version: 4.0.4829 (x64 on rosetta to use python)
OS: MacOs Montery 12.6 (Mac M1 Pro)

Repro
- from the cli initialize using dotnet-isolated
- create a new function app using `func new --template 'Timer trigger'

```console
paulyuk@Pauls-MBP-2  ~/src/functions  func init test2 --dotnet-isolated

Writing /Users/paulyuk/src/functions/test2/.vscode/extensions.json
paulyuk@Pauls-MBP-2  ~/src/functions  cd test2
paulyuk@Pauls-MBP-2  ~/src/functions/test2  ls
Program.cs host.json test2.csproj
Properties local.settings.json
paulyuk@Pauls-MBP-2  ~/src/functions/test2  func new --template 'Timer trigger'
Select a number for template:Function name:
```

Expected that last line does not ask me for number (which I don't have anyway!) and it should have honored the --template argument i passed in above.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with `func init test2 --dotnet-isolated` followed by `func new --template 'Timer trigger'` on the Azure Functions Core Tools CLI. Trace how the `--template` argument is handled for dotnet-isolated apps and verify that the command creates the requested template without prompting for a number.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.