Azure-functions-core-tools: Normalize --language in func new to accept language name aliases

Created on 21 May 2018  路  2Comments  路  Source: Azure/azure-functions-core-tools

Trying to create a new Javascript function is not working.

It asks for a Template, but no option is given. Trying to type the template name does not work either, making it unusable.

image

Trying to create the same function in C# actually works fine:

image

bug improvement small

Most helpful comment

@JohnReeson It works with "javascript".

Think we need some validation for the language informed by the user. Or something like this: https://github.com/Azure/azure-functions-core-tools/blob/d3b278faccd93ce2af6f9cb238bebf390d5e3d10/src/Azure.Functions.Cli/Helpers/WorkerRuntimeLanguageHelper.cs#L20

All 2 comments

@ltouro , try to use javascript instead of js.

@JohnReeson It works with "javascript".

Think we need some validation for the language informed by the user. Or something like this: https://github.com/Azure/azure-functions-core-tools/blob/d3b278faccd93ce2af6f9cb238bebf390d5e3d10/src/Azure.Functions.Cli/Helpers/WorkerRuntimeLanguageHelper.cs#L20

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Kaushik27 picture Kaushik27  路  5Comments

buragc picture buragc  路  6Comments

brandonh-msft picture brandonh-msft  路  4Comments

dstaley picture dstaley  路  3Comments

Mikey032 picture Mikey032  路  3Comments