Skip to content

Commit

Permalink
Populate the dev-env help documentation with the supported PHP versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
terriann committed Jun 13, 2024
1 parent 3f494d3 commit f939e73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/dev-environment/dev-environment-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,8 @@ export function processVersionOption( value: unknown ): string {
return value?.toString() ?? '';
}

const phpVersionsSupported: string = Object.keys(DEV_ENVIRONMENT_PHP_VERSIONS).join(', ');

Check failure on line 861 in src/lib/dev-environment/dev-environment-cli.ts

View workflow job for this annotation

GitHub Actions / Lint

Replace `DEV_ENVIRONMENT_PHP_VERSIONS).join(',·'` with `·DEV_ENVIRONMENT_PHP_VERSIONS·).join(·',·'·`

export function addDevEnvConfigurationOptions( command: Args ): Args {
// We leave the third parameter to undefined on some because the defaults are handled in preProcessInstanceData()
return command
Expand Down Expand Up @@ -905,7 +907,7 @@ export function addDevEnvConfigurationOptions( command: Args ): Args {
)
.option(
'php',
'Manage the version of PHP. Accepts a string value for minor versions (8.x). Defaults to the most recent version of PHP.',
`Manage the version of PHP. Accepts a string value for minor versions: ${phpVersionsSupported}.`,

Check failure on line 910 in src/lib/dev-environment/dev-environment-cli.ts

View workflow job for this annotation

GitHub Actions / Lint

Replace `phpVersionsSupported` with `·phpVersionsSupported·`
undefined,
processVersionOption
)
Expand Down

0 comments on commit f939e73

Please sign in to comment.