Azure/azure-functions-core-tools

Nodejs v4 new function cli response

Open

#3,383 opened on Jun 4, 2023

 (1 comment) (0 reactions) (0 assignees)C# (491 forks)auto 404
area: templatesenhancementgood first issue

Repository metrics

Stars
 (1,456 stars)
PR merge metrics
 (PR metrics pending)

Description

When the CLI creates a new function for the Node.js v4 runtime, can the response include the command to create a new api which would be the next step? currently the response doesn't include it so I have to use the --help to figure it out on the CLI .

Currently it says:

core@MacBook-Pro-3 api-function-v4-from-cli % func init --worker-runtime node --model V4 --language typescript
The new Node.js programming model is in public preview. Learn more at https://aka.ms/AzFuncNodeV4
Writing package.json
Writing .funcignore
Writing tsconfig.json
Writing .gitignore
Writing host.json
Writing local.settings.json
Writing /Users/dina/repos/azure-samples/azure-typescript-e2e-apps/api-function-v4-from-cli/.vscode/extensions.json
Running 'npm install'...%                                                                                        

Proposing:

Currently it says:

core@MacBook-Pro-3 api-function-v4-from-cli % func init --worker-runtime node --model V4 --language typescript
The new Node.js programming model is in public preview. Learn more at https://aka.ms/AzFuncNodeV4
Writing package.json
Writing .funcignore
Writing tsconfig.json
Writing .gitignore
Writing host.json
Writing local.settings.json
Writing /Users/dina/repos/azure-samples/azure-typescript-e2e-apps/api-function-v4-from-cli/.vscode/extensions.json
Running 'npm install'...%   

Create your first API with the following command: ...                                                                                     

Contributor guide