resources/templates/NewScript/plasterManifest_en-US.xml
<?xml version="1.0" encoding="utf-8"?>
<plasterManifest schemaVersion="1.1" templateType="Item" xmlns="http://www.microsoft.com/schemas/PowerShell/Plaster/v1"> <metadata> <name>NewScript</name> <id>20296e05-7688-437e-ac6d-792cc9ddaf92</id> <version>1.0.0</version> <title>New PowerShell script and test file</title> <description>Creates src file (.ps1) and test file (.Tests.ps1) located in congruent directories.</description> <author>Marc Kassay</author> <tags>Module, ScriptModule</tags> </metadata> <parameters> <!-- Since this template is designed to be called via Install-Template; the parameters for that command will set value for this variable/directive So the condition expression set to return false to prevent being prompt. --> <parameter prompt="Enter the name of the module" type="text" name="Name" default="${PLASTER_PARAM_Name}" condition="1 -eq 2" /> </parameters> <content> <message> Flow is scaffolding your PowerShell template... </message> <templateFile source='parts\Script.ps1' destination='src\${PLASTER_PARAM_ScriptCongruentPath}\${PLASTER_PARAM_ScriptName}.ps1' /> <templateFile source='parts\Script.Tests.ps1' destination='test\${PLASTER_PARAM_ScriptCongruentPath}\${PLASTER_PARAM_ScriptName}.Tests.ps1' /> <message> Scaffolding is completed. </message> </content> </plasterManifest> |