518 Commits

Author SHA1 Message Date
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 d056d542db fix(core): Use Invoke-Command instead of Invoke-Expression (#4941) 2022-05-26 10:54:34 +08:00
Xuesong 8140a2052c fix(scoop-search): Require files in 'bucket' dir for remote known buckets (#4944) 2022-05-24 18:49:28 +08:00
Lewin Chan 47d7f76f7c fix(scoop-info): Fix error message when manifest is not found (#4935) 2022-05-17 23:31:41 +08:00
Hsiao-nan Cheung a2600b1203 fix(buckets): Don't check remote URL of non-git buckets (#4923) 2022-05-15 15:49:38 +08:00
Hsiao-nan Cheung b96abcfda9 feat(scoop-cleanup): Add -a/--all switch to cleanup all apps (#4906) 2022-05-07 11:23:33 +08:00
L. Yeung 22365c2169 fix(bucket): Return empty list correctly in Get-LocalBucket (#4885)
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
Co-authored-by: Rashil Gandhi <rashil2000@gmail.com>
2022-04-27 17:37:18 +08:00
Hsiao-nan Cheung e6d03715fa fix(libs): Add missing 'json.ps1' dependency (#4884) 2022-04-23 01:44:03 +08:00
Hsiao-nan Cheung 6296822f1f perf(scoop): Load libs only once (#4839) 2022-04-21 21:34:26 +08:00
Hsiao-nan Cheung 32de4c5714 refactor(bucket): Move 'Find-Manifest' and 'list_buckets' to 'buckets' (#4814) 2022-03-23 10:47:52 +08:00
Rashil Gandhi ced36b285d doc(scoop-shim): Fix typo (#4836)
* Update scoop-shim.ps1

* Update CHANGELOG.md
2022-03-22 19:56:21 +05:30
Alex Stelmachonak ad3fc4f8fb feat(config): Rename checkver_token to gh_token and SCOOP_CHECKVER_TOKEN to SCOOP_GH_TOKEN (#4832)
* Properly filtering null input in dl function when private_hosts is not set in config

* Rename checkver_token to gh_token and SCOOP_CHECKVER_TOKEN to SCOOP_GH_TOKEN
2022-03-22 03:30:19 +05:30
Thad Smith 45db5fb325 feat(install): Allow downloading from private repositories (#4254)
* added ability to use private github repositories

To do this, define a gh_api_token in the sccop config, if the repository is private it will use the apis to get and use the asset id

* corrected inherited linting error

* updated url to pull filename

* inlined get_headers and get-members functions and updated changelog

* simplified host headers and switched to checkver_token from: astelmachonak-nydig

* added ability to use private github repositories

To do this, define a gh_api_token in the sccop config, if the repository is private it will use the apis to get and use the asset id

* updated url to pull filename

* inlined get_headers and get-members functions and updated changelog

* simplified host headers and switched to checkver_token from: astelmachonak-nydig

* Update lib/core.ps1

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

* Update lib/core.ps1

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

* Fix RegEx

* Some tweaks

* optimize

Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
Co-authored-by: Rashil Gandhi <rashil2000@gmail.com>
2022-03-22 02:25:53 +05:30
tech189 53cdf68e26 fix(scoop-download): Add failure check (#4822)
* scoop-download failure check, aria2 warn if uninstalled

* Revert core.ps1

* Update CHANGELOG.md
2022-03-18 20:36:46 +05:30
Hsiao-nan Cheung 5a795caca5 refactor(reset_aliases): Move core function of reset_aliases to scoop (#4794) 2022-03-11 18:10:04 +08:00
Chawye Hsu 5025661fa2 fix(shim): Manipulating shims with UTF8 encoding (#4791) 2022-03-10 15:55:15 +08:00
Rashil Gandhi 476b507bb6 fix(update): Skip logs starting with (chore) (#4800)
* fix(update): Skip logs starting with `(chore)`

* Update CHANGELOG.md
2022-03-10 13:14:46 +05:30
Hsiao-nan Cheung 60d308f7d6 fix(scoop-prefix): Fix typo that breaks global installed apps (#4795) 2022-03-10 01:24:46 +08:00
Hsiao-nan Cheung 750ea54d49 fix(shim): Fix scoop which error (#4780) 2022-03-07 22:14:26 +08:00
zStruCat 43d5e99705 fix(scoop-search): Remove redundant 'bucket/' in search result (#4773)
* fix remote search

* add hint

* tweak

* docs(changelog): Update CHANGELOG

Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2022-03-07 15:43:30 +05:30
HUMORCE 63b858c41f style: Use correct casing for $PSScriptRoot (#4775) 2022-03-04 22:55:45 +08:00
Rashil Gandhi a8e36d35c7 feat(scoop-config): Show all settings (#4765)
* feat(scoop-config): Show all settings

* cl
2022-02-28 10:53:45 +05:30
Hsiao-nan Cheung e4580dd705 feat(scoop-shim): Add scoop shim to manipulate shims (#4736) 2022-02-26 22:32:54 +08:00
Hsiao-nan Cheung a67937f77d fix(cleanup): Hotfix for #4681 (#4763) 2022-02-26 22:22:33 +08:00
Rashil Gandhi aa61f1994a feat(scoop-info): Revamp details and show more information (#4747)
* feat(scoop-info): Introduce `verbose` flag

* feat(scoop-info): Allow passing local manifest paths

* feat(scoop-info): Show bucket and shortcuts

* feat(scoop-info): Show dependencies and suggestions

* feat(scoop-info): Show 'Updated at' and 'Updated by'

* changelog

* optimize git call

* restore clicky-ness of homepage

* simplify joining

* use getopt

* Update libexec/scoop-info.ps1

Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>

Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2022-02-25 13:06:46 +05:30
HUMORCE 0cb6152e1a fix(scoop-bucket): Fix date formatting issues with git bucket(s) (#4759) 2022-02-25 11:32:50 +08:00
Xavier Young 4047d6962c perf(install): Avoid checking all files for unlink persisted data (#4681) 2022-02-25 10:08:07 +08:00
Rashil Gandhi 40b2d951e8 fix(scoop-bucket): Check for git before running command (#4756)
* fix(scoop-bucket): Check for git before running command

* Apply suggestions from code review

Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>

* Update CHANGELOG.md

Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2022-02-24 15:11:40 +05:30
Rashil Gandhi b95ccbe14a refactor(scoop-config): Use underscores everywhere (#4745) 2022-02-21 10:01:20 +08:00
Rashil Gandhi e1f569b01b feat(scoop-cat): Use bat to pretty-print JSON (#4742)
* feat(scoop-cat): Use `bat` to pretty-print JSON

* update changelog

* hide filename and line numbers

* Add `cat_style` config option

* use underscores

* Revert "use underscores"

This reverts commit 46524fc947.

* Apply suggestions from code review

Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>

Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2022-02-17 22:57:18 +05:30
Rashil Gandhi d1f828c942 fix(scoop-info): Use pipe to separate bins (#4744) 2022-02-17 19:21:52 +05:30
Rashil Gandhi 26517644df refactor(scoop-info): Use List View for output (#4741)
* refactor(scoop-info): Use List View for output

* review comments
2022-02-17 08:21:38 +05:30
Rashil Gandhi f83fa145de feat(scoop-cache): Handle multiple apps, show more information (#4738)
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2022-02-16 13:06:23 +08:00
Hsiao-nan Cheung 21c5c6e775 fix(scoop-alias): Fix alias initialization (#4737)
* fix(scoop-alias): Fix alias initialization

* fix(scoop-alias): Remove 'Format-Table'
2022-02-14 20:17:15 +05:30
Hsiao-nan Cheung c41cb84404 feat(scoop-alter): Add scoop alter command to switch shim's target (#4727) 2022-02-13 20:42:55 +08:00
CrendKing 14854c3548 feat(config): Allow Scoop to ignore running processes during reset/uninstall/update (#4713)
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2022-02-11 13:55:42 +08:00
Hsiao-nan Cheung c01960f283 fix(scoop-update): Enforce $null array (#4725) 2022-02-09 18:27:37 +08:00
Hsiao-nan Cheung 285ffd0322 fix(no-junction): Fix error when 'NO_JUNCTIONS' is been set (#4722) 2022-02-09 11:08:56 +08:00
Rashil Gandhi b69bdbd6d2 feat(scoop-list): Show last-updated time (#4723) 2022-02-09 11:08:24 +08:00
Hsiao-nan Cheung ba970d5c42 fix(versions): Get current version from failed installation if possible (#4720) 2022-02-09 11:07:54 +08:00
Rashil Gandhi e450843827 refactor(scoop-list): Allow list manipulation (#4718)
* refactor(scoop-list): Allow list manipulation

* update changelog
2022-02-08 17:26:23 +05:30
Rashil Gandhi 7967905980 fix(scoop-bucket): Use git instead of git_cmd (#4707) 2022-02-02 20:05:17 +00:00
HUMORCE 0e4721a408 feat(scoop-bucket): List more detailed information for buckets (#4704)
* refactor(scoop-bucket): Show source/lastupdate for buckets

* use `StartsWith`

* CHANGELOG

* punctuation

* style

* upd

* Update libexec/scoop-bucket.ps1

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

* count num of manifests in the buckets

* update changelog

* remove write-host

* friendly_path

* datetime format

* order

* sty

* prop.

* trim

* obj

* update CHANGELOG

Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>
2022-02-03 01:13:37 +05:30
Rashil Gandhi 8c02776c6c refactor(git): Remove unused functions (#4703)
* refactor(git): Remove unused functions

* unused imports
2022-02-01 11:37:44 +00:00
HUMORCE c6b10c8f89 refactor(diagnostic,scoop-checkup): Improvements for 'check_windows_defender' and 'scoop-checkup' (#4699)
* Downgrade defender checks from `warn` to `info`

* checkup update

- Skip `check_windows_defender` when have not admin privileges
- Separate defender issues($defenderIssues)
- Security Tips

* Skip check for `ExclusionPath` if defender realtime protect is disabled

* elif

* CHANGELOG
2022-02-01 13:24:48 +05:30
HUMORCE 5b0bdaf893 refactor(git): Use 'git -C' to specify the work directory instead of 'Push-Location'/'Pop-Location' (#4697)
* add `git_cmd`

-without any preset command/args

* remove unnecessary import

- `git.ps1`

* stop `Push-Location` and `Pop-Location` before/after git operations

* stop `Push-Location` and `Pop-Location` before/after git operations

* consistency of naming variable

* CHANGELOG

* punctuation mark

* remove functions that are no longer used

- `git_fetch`
- `git_pull`
- `get_checkout`
2022-02-01 13:16:45 +05:30
Rashil Gandhi ba28a4f4f1 refactor(COMSPEC): Deprecate use of subshell cmd.exe (#4692) 2022-01-26 10:47:39 +08:00
Hsiao-nan Cheung 158c0fd4d0 fix(install-status): Correctly handle failed installation of apps (#4676) 2022-01-25 21:58:03 +08:00
Hsiao-nan Cheung 81b7aaf8d7 fix(scoop-update): Remove 'Done.' output (#4672) 2022-01-18 15:45:43 +08:00
Hsiao-nan Cheung 4e64db7f93 fix(cleanup): Remove apps other than current version (#4665) 2022-01-18 14:25:55 +08:00