27 Commits

Author SHA1 Message Date
HUMORCE 6d79d62cc8 fix(core): Handle scoop aliases and broken (edited,copied) shim (#5551)
* fix(core): Avoid error messages when shim broked, Allow get path for scoop aliases

* update `scoop-which`

* Add CHANGELOG entry

* Update CHANGELOG.md

Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>

---------

Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>
2023-10-03 18:59:10 +05:30
Rashil Gandhi 0f6d012d26 fix(shim): Add 'Get-CommandPath()' to find git (#4913)
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2022-05-27 10:18:41 +08:00
Hsiao-nan Cheung 6296822f1f perf(scoop): Load libs only once (#4839) 2022-04-21 21:34:26 +08:00
Hsiao-nan Cheung 5a795caca5 refactor(reset_aliases): Move core function of reset_aliases to scoop (#4794) 2022-03-11 18:10:04 +08:00
Hsiao-nan Cheung 750ea54d49 fix(shim): Fix scoop which error (#4780) 2022-03-07 22:14:26 +08:00
HUMORCE 63b858c41f style: Use correct casing for $PSScriptRoot (#4775) 2022-03-04 22:55:45 +08:00
Rashil Gandhi ef4349bee4 feat(shim): Rework shimming logic (#4543)
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2021-12-02 21:23:36 +08:00
Hsiao-nan Cheung a757dea15e refactor(cmd_available/Get-Command): Add Test-CommandAvailable function (#3314) 2019-04-28 18:53:00 +02:00
Chawye Hsu 731247876d [Pending] Finally we add the code linting and its tests! (#2108)
* Lint: PSPossibleIncorrectComparisonWithNull

* Lint: PSUseLiteralInitializerForHashtable

* Lint: PSUseBOMForUnicodeEncodedFile

* Lint: PSUseApprovedVerbs

* Lint: PSAvoidGlobalVars

* Lint: PSAvoidUsingEmptyCatchBlock

* Lint: PSUseShouldProcessForStateChangingFunctions

* Lint helper: Add PSScriptAnalyzer integration for vscode

* Fix lint: PSUseBOMForUnicodeEncodedFile

* Tests: ignore previous TestResults.xml

* Tests: add PowerShell script linting into tests!

* Add PSScriptAnalyzer into appveyor ci

* Update Scoop-Linting.Tests.ps1
2018-03-13 14:26:55 +01:00
Richard Kuhnt 79bf99c3c1 Also show other applications in PATH with 'scoop which' 2018-03-11 19:53:02 +01:00
Chawye Hsu e1bb1e91d0 Lint: PSAvoidUsingCmdletAliases (#2075) 2018-03-03 18:41:19 +01:00
Richard Kuhnt 46cf8bf355 Better description for the scoop which command 2017-11-02 21:21:25 +01:00
Luke Sampson e475d49f03 Scoop which: report on the command that will actually be executed instead of preferencing commands of the same name with a .ps1 extension. 2017-03-24 10:25:08 +11:00
Luke Sampson 1c173bc56d Use sentence case for UI messages. 2017-02-13 20:20:41 +11:00
Luke Sampson 291f6caf80 restore @deevus's relative paths (fixes #443) 2016-06-03 19:13:06 +10:00
Luke Sampson fb1dd522de Fix 'scoop which' when username has space (fixes #673) 2016-06-03 17:24:05 +10:00
Roy Ivy III 6d9bca805f whitespace cleanup
* makes changes to almost all main repo files to be in accordance with .editorconfig
* some files in "test\fixtures\..." were left alone to avoid breaking tests
* NOTE: whitespace changes *only* (`git diff -b` shows no changes)
2015-08-17 22:54:43 -05:00
Simon Hartcher b68ccaa8f4 Fix scoop-which to support relative shims
Fixes #442
2015-07-27 18:47:48 +10:00
Luke Sampson bc1a8e4945 brute force fix for powershell alias problems 2015-05-11 20:17:59 +10:00
Luke Sampson b103b80045 scoop which: handle double-quoted paths in shims (fixes #358) 2015-05-11 13:41:53 +10:00
Luke Sampson 0df0621188 fix 'which' when global shim dir doesn't exist 2013-09-07 21:14:53 +10:00
Luke Sampson 9dab00f2b8 scoop which shows friendly path even though full path is now stored in shim 2013-09-03 11:45:26 +10:00
Luke Sampson 9fcd4215d1 make 'scoop which' work with global shims 2013-09-03 11:10:22 +10:00
Luke Sampson 555e189d33 beginning refactoring for global installs 2013-08-30 16:58:20 +10:00
Luke Sampson 7382e17561 convert spaces to tabs 2013-08-15 13:05:00 +10:00
Luke Sampson 862c39e93a scoop which: send errors to std error, output program path to std out whether it's a scoop shim or not 2013-08-09 13:39:58 +10:00
Luke Sampson 4ec238ed36 use scoop-*.ps1 for libexec 2013-07-18 12:51:15 +10:00