Azure / Azure/azure-functions-core-tools
Feature: Default names of function apps created by CLI could be more Linux-friendly (avoid PascalCase)
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 498
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 14
Description
core tools version: 4.0.4829 (x64 on rosetta to use python)
OS: MacOs Montery 12.6 (Mac M1 Pro)
IMHO the current names of the Function apps created by templates/core tools with `func new` are not Linux friendly. What I mean is we create function folders like "TimerTrigger" or "CosmosTrigger" that are PascalCase. This means I have to watch out for case sensitivity as I use the keyboard and tabbing in the bash console. In MacOS the terminal is fairly forgiving, but in straight linux or WSL2 this will block you from cd timertrigger or cd timer working.
Coming from a Windows/.NET DNA I get this, but in the linux world with Python and Javascript we try to avoid this at great lengths. Please see github.com/dapr/quickstarts for examples of more linux friendly code.
In general I suggest we avoid ALL default strings with capitalization or pascal casing.
```console
paulyuk@Pauls-MBP-2 ~/src/functions/templates ls
CosmosTrigger getting_started.md local.settings.json
TimerTrigger host.json requirements.txt
```
Contributor guide
Research direction
Start by inspecting the templates used by `func new`, including the `~/src/functions/templates` area shown in the report, and reproduce the generated folders on a case-sensitive Linux or WSL2 environment. Done means the default generated names avoid capitalization consistently without breaking template behavior.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100