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

Create a Squirrel.ps1 module #23

Open
ChaseFlorell opened this issue Aug 10, 2015 · 2 comments
Open

Create a Squirrel.ps1 module #23

ChaseFlorell opened this issue Aug 10, 2015 · 2 comments

Comments

@ChaseFlorell
Copy link
Member

Should contain

function New-SquirrelRelease {
    Exec { squirrel.com --releasify ..... }
}
@ChaseFlorell
Copy link
Member Author

we could possibly make this an internal function only, and have a wrapper for both Squirrel and ClickOnce.

New-ApplicationRelease -tool Squirrel
New-ApplicationRelease -tool ClickOnce
Not entirely sure how to do DI in PowerShell... DI would be gravy.

@ChaseFlorell
Copy link
Member Author

Here's a PoC of a function translating. (kind of like Dependency Injection, but not really.)

It will allow us to do something like

Register-Function New-SquirrelRelease | As New-ApplicationRelease
# or
Register-Function New-ClickOnceRelease | As New-ApplicationRelease

And then run it

New-ApplicationRelease @params

The only other thing would be that we'd need to ensure that the parameter definitions for both the ClickOnce module and the Squirrel module match exactly. Interfaces are not supported in powershell.

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

No branches or pull requests

1 participant