chocolatey / chocolatey/choco

Allow default values for custom replacement properties in templates

Open
#1,814 1 comment 2 reactions 0 assignees View on GitHub
0 - Backlog Enhancement
Dominant language
C#
Stars
11.5k
Forks
961
PR merge metrics
No merged PRs in 30d

Description

When we are creating our own custom package templates with custom replacement properties, I think it would be useful to be able to specify a default value to be inserted if a user haven't passed in the value. (A fallback value, if you will).

The way I am thinking this could be used by the one create the template is something like this:
```
[[extensionId::FALLBACK_VALUE]]
```
or something similiar to that.

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is identified in the issue. First locate the code that processes custom replacement properties in package templates and determine how replacement syntax is parsed. Done means a template can specify a fallback value that is used when the corresponding property is not supplied.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.