question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

template.json how to use two parameters to rename a directory?

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
StevenTCramercommented, Jun 8, 2020

@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.

0reactions
vlada-shubinacommented, Dec 14, 2020

Closing this item. Please do not hesitate to reopen if the solution above doesn’t fix the issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found