Test a binary is found (assuming golangci-lint
is part of the aqua config).
try {
&aqua install
if (@(Get-Command 'golangc2i-lint').Count -eq 0){
throw "couldn't find tooling installed by aqua?.... what do you did wrong?"
}
Write-Host ('✅ found golangci-lint: {0}' -f $(Get-Command 'golangci-lint').Source)
} catch {
Write-Error "#fail"
}
If it's working, you can use the profile configuration in your profile.
To use beyond VSCode, and make sure all terminals for pwsh
recognize the command, update the following current user profile configuration.
- Open profile:
code -n $PROFILE.CurrentUserAllHosts
.