Skip to content

Install-ServyService: PostLaunch missing parameters that PreLaunch has #58

@Christophe-Rogiers

Description

@Christophe-Rogiers

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)

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions