template.json how to use two parameters to rename a directory?
See original GitHub issueI would like to be able to rename a directory to path combined from two input params.
example command: dotnet new endpoint -n GetHealth -R Purple -F Health
I would like to rename a template directory \Api
to Source\Api\Feature\Health\GetHealth
.
sources
modifiers
I don’t think support parameters and using a derived rename only has one valueSource
.
I am sure I am missing something. Thanks.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
How to rename a folder with dotnet custom templates?
1 Answer 1 ... Use the sources property of .template.config/template.json for renaming files. ... The other caveat of the OP method is that...
Read more >JSON templates - Shopify.dev
Learn how to use JSON templates to build pages with sections that can be customized in the theme editor.
Read more >Custom templates for dotnet new - .NET CLI
Use a value of http://json.schemastore.org/template . ... For example, here's a template folder that contains two content files: console.cs ...
Read more >use custom parameters in the Resource Manager template
Under typeProperties , two properties are parameterized. The first one is maxConcurrency , which is specified to have a default value and is...
Read more >Parameters - AWS CloudFormation
Use parameters to pass values to your template when creating or updating a stack so that you can customize each stack deployment.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@donJoseLuis The value gained is putting it the properly named folder. in
Source\Api\Features\Feature\Name
And yes I think a Post-Action I could move files anywhere just figured I was missing something.
the derived only takes one
valueSource
if could take two then this would be easily possible.Closing this item. Please do not hesitate to reopen if the solution above doesn’t fix the issue.