Repository navigation
Conversation
…rShell cmdlet help Signed-off-by: Ym <173550318+MaxonT@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The PackageScript and PackageProject parameter sets in the PowerShell tools docs skipped a step you'd need to know already, so the attached patch adds the missing explanation between them.
The comment-based help for
New-AWSPowerShellLambdaPackagementions the script and project workflows but never says that-ScriptPathand-ProjectDirectorybelong to different parameter sets, or that-ProjectDirectoryneeds a folder with a .NET project file.New-AWSPowerShellLambda -Template Basiccreates only the script, so the folder it creates cannot be passed to-ProjectDirectory; the packaging step then fails with "No .NET project found in directory ..." (shown in the maintainer's reproduction on the issue).Changes, help text only, in
PowerShell/Module/Public/:New-AWSPowerShellLambdaPackage.ps1: a paragraph in.DESCRIPTIONnaming the two parameter sets and which parameters go with each;.PARAMETER ProjectDirectoryand.PARAMETER ScriptPathsay they cannot be combined and that a project folder needs a .NET project file; two examples, script template then-ScriptPath, and-WithProjectthen-ProjectDirectory.New-AWSPowerShellLambda.ps1: a short paragraph in.DESCRIPTIONsaying that without-WithProjectonly the script file (plus a readme.txt) is created and no project file, so it goes to-ScriptPath.I checked the wording against the
paramblocks andParameterSetNameattributes in both files and the project file list in theNew-AWSPowerShellLambdahelp.Not verified: PowerShell (
pwsh) is not installed on my machine, so I did not run the cmdlets or renderGet-Help; the two new examples are read from the code, not executed. No code or tests changed, and I did not add a change file because the PowerShell module is not listed as a project in.autover/autover.json.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Refs #1821