Bug Description
The Install-ServyService function defines a full set of parameters for PreLaunch hooks but only a minimal set for PostLaunch hooks, without documenting why.
Actual Behavior
PreLaunch has 9 parameters:
[string] $PreLaunchPath,
[string] $PreLaunchStartupDir,
[string] $PreLaunchParams,
[string] $PreLaunchEnv,
[string] $PreLaunchStdout,
[string] $PreLaunchStderr,
[string] $PreLaunchTimeout,
[string] $PreLaunchRetryAttempts,
[switch] $PreLaunchIgnoreFailure,
PostLaunch has only 3 parameters:
[string] $PostLaunchPath,
[string] $PostLaunchStartupDir,
[string] $PostLaunchParams,
Missing from PostLaunch compared to PreLaunch:
Env — environment variables
Stdout / Stderr — log output redirection
Timeout — execution timeout
RetryAttempts — retry on failure
IgnoreFailure — continue on failure
Question
Is this intentional because the Servy CLI does not support these options for post-launch hooks? If so, it would be helpful to document this in the .DESCRIPTION or parameter help. If the CLI does support them, they should be added for parity.
Environment
- PowerShell module:
Servy.psm1
- Affects:
Install-ServyService function (lines 547-551 vs lines 536-545)
Bug Description
The
Install-ServyServicefunction defines a full set of parameters for PreLaunch hooks but only a minimal set for PostLaunch hooks, without documenting why.Actual Behavior
PreLaunch has 9 parameters:
PostLaunch has only 3 parameters:
Missing from PostLaunch compared to PreLaunch:
Env— environment variablesStdout/Stderr— log output redirectionTimeout— execution timeoutRetryAttempts— retry on failureIgnoreFailure— continue on failureQuestion
Is this intentional because the Servy CLI does not support these options for post-launch hooks? If so, it would be helpful to document this in the
.DESCRIPTIONor parameter help. If the CLI does support them, they should be added for parity.Environment
Servy.psm1Install-ServyServicefunction (lines 547-551 vs lines 536-545)