Document OPA Path changes + add back ScubaGear root directory as possible place for OPA exe location #835
Labels
enhancement
This issue or pull request will add new or improve existing functionality
Milestone
馃挕 Summary
$OPAPath
parameter inInvoke-SCuBA
was changed to accommodate for the upcoming case of installing ScubaGear from PSGallery.The default path was changed to
Join-Path -Path $env:USERPROFILE -ChildPath ".scubagear\Tools
. A folder to be created under the user's home folder.This issue is to add back in the original path
Join-Path -Path $PSScriptRoot -ChildPath "..\..\.."
as a fallback path in case the above path does not exist due tomkdir
failure or the user is using the zip packaged release.Another thing that needs to be updated is the documentation in the README for OPA default path and the docstring above
Invoke-SCuBA
Motivation and context
The original intent for the default $OPAPath was so that a user could set up ScubaGear and start running with minimal installation troubleshooting. This issue is to reinforce that with documentation and additional fallbacks in case something goes awry.
Implementation notes
Join-Path -Path $PSScriptRoot -ChildPath "..\..\.."
as a fallback default path to$OPAPath
inInvoke-SCuBA
.$OPAPath
under Parameter Definitions$OPAPath
docstring aboveInvoke-SCuBA
to document the new path changes.Acceptance criteria
The text was updated successfully, but these errors were encountered: