jezzsantos / automate

Templatize patterns from your own codebase, make them programmable, then share them with your team. https://jezzsantos.github.io/automate/
https://www.nuget.org/packages/automate
MIT License
7 stars 0 forks source link

Add a codetemplate and command in same command #59

Closed jezzsantos closed 2 years ago

jezzsantos commented 2 years ago

Adding a code template and code template command is currently two separate (but related commands).

For example:

automate edit add-codetemplate "./AProjectName/AFilename.ext" --name "ATemplateName" automate edit add-codetemplate-command "ATemplateName" --isoneoff --targetpath "~/APropertyName/AFilename.ext"

Can this be combined into one command:

automate edit add-codetemplate-with-command "./AProjectName/AFilename.ext" --name "ATemplateName" --isoneoff --targetpath "~/APropertyName/AFilename.ext"

Where the name of the command will be assumed to be ATemplateNameCommand, since there is no way to capture the name of the command separate from the code template name.