I've been reading the posts lately and I get the sense that it would
be better to not have psake as a module because you are required to
use the Import-Module function before you can use it.
psake was originally written as a script called psake.ps1, this was
before psake was re-done for PowerShell V2 - I was the one responsible
for this change and I thought at the time I needed to have psake live
in a module in order to use advanced functions - I was mistaken.
So I've re-written psake to not require a module but it still uses
advanced functions - so you still get integrated help support and tab
completion.
The only downside is that you can't easily remove psake using the
remove-module function.
The new psake code is in a branch:
http://github.com/JamesKovacs/psake/tree/experimental-no.psm1
It's a first draft but it passes all the specs.
You have 2 ways to run your build
1) Dot-Source the psake.ps1 file and call Invoke-psake
> . .\psake.ps1
> Invoke-psake .\default.ps1 Clean
or
2) Call the psake.ps1 script directly
> psake.ps1 .\default.ps1 Clean
- parameters will get passed to the Invoke-psake function
What I would like is feedback on this new version - is a good idea?
or should we stick with the module?
--
You received this message because you are subscribed to the Google Groups "psake-dev" group.
To post to this group, send email to
psak...@googlegroups.com.
To unsubscribe from this group, send email to
psake-dev+...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/psake-dev?hl=en.