ligershark / pecan-waffle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow -noNewFolder to be specified in the template

sayedihashimi opened this issue · comments

Today the caller is responsible for passing in -noNewFolder. We should make an update to allow this behavior to be defaulted by the template in the pw-templateInfo file.This is useful when you're creating a multi-project template.

For example.

$templateInfo = New-Object -TypeName psobject -Property @{
    Name = 'template-name'
    Type = 'ProjectTemplate'
    CreateNewFolder = $false
}

Related to #19

@managedcoder you should add CreateNewFolder = $false to your template info file. See above

Should work now