We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Current Windows installation instructions are incorrect, curl unsupported options
curl
$releases = curl -sSLf https://api.github.com/repos/tomwright/dasel/releases/latest Invoke-WebRequest -Uri (($releases | ConvertFrom-Json).assets ` | Where-Object { $_.name -eq "dasel_windows_amd64.exe" } ` | Select-Object -ExpandProperty browser_download_url) ` -OutFile dasel.exe
The curl should be replaced with Invoke-RestMethod and the Invoke-WebRequest changed
Invoke-RestMethod
Invoke-WebRequest
$releases = Invoke-RestMethod -Uri https://api.github.com/repos/tomwright/dasel/releases/latest Invoke-WebRequest -Uri ( $releases.assets ` | Where-Object { $_.name -eq "dasel_windows_amd64.exe" } ` | Select-Object -ExpandProperty browser_download_url ) ` -OutFile dasel.exe
The Invoke-RestMethod converts the response into a PowerShell object, so conversion from JSON is unnecessary
The text was updated successfully, but these errors were encountered:
Could you raise a PR for this please? I don't use Windows so am unable to test
Sorry, something went wrong.
No branches or pull requests
Current Windows installation instructions are incorrect,
curl
unsupported optionsThe
curl
should be replaced withInvoke-RestMethod
and theInvoke-WebRequest
changedThe
Invoke-RestMethod
converts the response into a PowerShell object, so conversion from JSON is unnecessaryThe text was updated successfully, but these errors were encountered: