Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template automation. Auto generate PowerShell script files by parsing the template.json parameters. PS supports positional parameters. #7546

Open
egvijayanand opened this issue Feb 8, 2024 · 1 comment

Comments

@egvijayanand
Copy link
Contributor

Is your feature request related to a problem? Please describe.

https://egvijayanand.in/2024/02/09/dotnet-maui-item-templates-made-easy-on-cli-and-visual-studio-code/

To make the user experience with .NET CLI item templates much easier, have manually generated PowerShell scripts that match that of my custom template design.

But this can be automated to a certain extent like generating the PS script stub with the info from the template.json file.

Then developer can fine-tune it and add it to the package for distribution.

Like .NET CLI tools, a path can be designated to these scripts, and that path added to the Path environment variable so that it is available anywhere to invoke.

Describe the solution you'd like.

Auto-generated PowerShell script files by parsing the template.json parameters.

The distribution of those PS scripts to the end-user machine along with the CLI template NuGet package.

Additional context

Template automation.

@baronfel
Copy link
Member

baronfel commented Feb 8, 2024

We already support completion for templates based on their template.jsom files through the NET CLI's tab-completion mechanism. Have you tried that? It's platform-agnostic and shell-agnostic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants