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

Split the Handler function into multiple PowerShell functions #297

Closed
Badgerati opened this issue Jul 1, 2019 · 0 comments · Fixed by #309
Closed

Split the Handler function into multiple PowerShell functions #297

Badgerati opened this issue Jul 1, 2019 · 0 comments · Fixed by #309

Comments

@Badgerati
Copy link
Owner

The handler function should be split out into multiple PowerShell functions. Each of these functions should be exported in pode.psd1.

This will also finally add support for multiple handlers.

  • Adding a handler
Add-PodeSmtpHandler
    -Name <string>
    -ScriptBlock <scriptblock>
    [-FilePath <string>]

Add-PodeTcpHandler
    -Name <string>
    -ScriptBlock <scriptblock>
    [-FilePath <string>]

Add-PodeServiceHandler
    -Name <string>
    -ScriptBlock <scriptblock>
    [-FilePath <string>]
  • Removing a handler
Remove-PodeSmtpRoute
    -Name <string>

Remove-PodeTcpRoute
    -Name <string>

Remove-PodeServiceRoute
    -Name <string>
@Badgerati Badgerati added this to the 1.0.0 milestone Jul 1, 2019
@Badgerati Badgerati added this to To do in Function Syntax Refactor via automation Jul 1, 2019
@Badgerati Badgerati moved this from To do to In progress in Function Syntax Refactor Jul 19, 2019
@Badgerati Badgerati self-assigned this Jul 20, 2019
Function Syntax Refactor automation moved this from In progress to Done Jul 20, 2019
Badgerati added a commit that referenced this issue Jul 20, 2019
#297: Convert Handler functions to PowerShell syntax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant