Jakub Čábera
d8d1400bf0
uninstall: Add support for soft/purge uninstalling of scoop itself ( #2781 )
2019-03-25 13:55:49 +01:00
Jakub Čábera
ad01bff667
Add bin\checkhashes.ps1 ( #2766 )
...
- Checks if all URLs inside manifest have correct hashes
2019-03-11 10:39:37 +01:00
Hsiao-nan Cheung
5f91682a79
decompress.ps1: Refactored (w/ install.ps1, core.ps1) (edited) ( #3169 )
...
* decompress.ps1: Refactored (w/ install.ps1, core.ps1)
* fix install.ps1
2019-03-07 22:14:06 +01:00
Jakub Čábera
8650dd4a74
[auto-pr] Add -SkipUpdated parameter ( #3168 )
2019-02-24 17:22:33 +01:00
Jakub Čábera
26e778a63a
[auto-pr] add -App parameter ( #3157 )
2019-02-22 18:44:36 +01:00
Richard Kuhnt
38e346d380
install.ps1: replace raw.github.com with raw.githubusercontent.com
...
closes #3142
2019-02-19 22:08:11 +01:00
Chawye Hsu
e3c248b77a
scoop.ps1: import config.ps1 ( #3115 )
...
Make sure configs have been loaded every time when user run `scoop` command and sub-command.
2019-02-12 19:20:32 +01:00
Richard Kuhnt
7ba87d5aea
bin\install.ps1: rename unzip to extract_zip ( closes #3074 )
...
- Fix bug introduced with https://github.com/lukesampson/scoop/commit/39136fc6fedcce91255d082706655bb3a111903a
2019-02-03 17:44:31 +01:00
Chawye Hsu
e5addb9487
Refactor: Tweak SecurityProtocol usage ( #3065 )
...
reopen #3051
Now the code logic: if `SecurityProtocol` is `SystemDefault`, don't change, else change it to `Tls1.2,Tls1.1,Tls1.0`, never support `Ssl3` anymore.
2019-02-01 18:17:40 +01:00
Jakub Čábera
0621db20ca
[auto-pr] Use regex instead of Starts|EndsWith ( #3026 )
...
* [auto-pr] Use regex instead of Starts|EndsWith
On my end result of `hub status --porcelain -uno` is prefixed with space on left for some reason,

Alternatively $status could be Trimed before condition

* Use x20
2019-01-23 20:16:13 +01:00
Jakub Čábera
b654eb05c9
Describe.ps1: Add parameter validation, format ( #2993 )
...
* Add synopsis
* Add native parameter validation
* Some renames
* Formatting
2019-01-16 18:39:42 +01:00
Jakub Čábera
c3195915ab
auto-pr.ps1: Fix table syntax, allow help without hub, format ( #2933 )
...
* Use Markdown format in commit message
* Table produced was wrong formatted due to syntax mismatch
* 
* Allow -Help to be called without hub installed
* Add Synopsis
* Respect PascalCase in Parameters
* Add default values for parameters and ValidateScript
2019-01-14 16:06:26 +01:00
Jun Ueoka
f23b2bbde5
install.ps1: Fix lastupdate config value after scoop installation ( #2919 )
...
Related to #2906
2018-12-20 18:46:09 +01:00
Jun Ueoka
79a0d3b768
core/update: Scoop updates itself automatically for the first time after fresh install ( #2907 )
...
Fixes #2906
2018-12-16 13:16:48 +01:00
Jakub Čábera
44a2194c87
[checkurls] Add SkipValid Parameter ( #2845 )
...
* Format first
* Add SkipValid parameter
* Remove junk comment
2018-12-05 16:15:46 -08:00
Jakub Čábera
c830cf3253
missingcheckver.ps1: fixes and formatting ( #2785 )
...
- Fix bug presented in https://github.com/lukesampson/scoop/commit/2a2c2059e00e3cca9fd87d1cacf0352bd39cfb0e#diff-67e44d47bfea08ffe769c6adc77f7215R22
- Missed $ before the bracket
- Add `App` parameter
- Format
2018-11-19 18:59:01 +01:00
Jakub Čábera
3e1649553d
formatjson.ps1: Format single value Arrays into String ( #2642 )
...
- Automatically convert single value arrays and recursively normalize PSObjects values
- Add tests
- Add .yml .editorconfig settings
2018-11-13 20:49:20 +01:00
Ross Smith II
44085256d5
checkver.ps1: Add -v option ( #2761 )
2018-11-12 10:15:29 +01:00
Brandon Smith
2e2633e964
GitHub checkver case-insensitive version check
2018-11-11 14:40:08 -05:00
Richard Kuhnt
a3cae34b13
Fix ExecutionPolicy regression introduced with #2703
2018-10-27 22:48:31 +02:00
Ben Dang
1d27f264b7
Fix the check for ExecutionPolicy scope ( #2703 )
...
Under certain terminals like cmder, `Get-ExecutionPolicy` will show the scope of `Process`. This fix explicitly checks the scope of `CurrentUser`.
Signed-off-by: Ben Dang <me@bdang.it >
2018-10-25 17:45:14 +02:00
Jakub Čábera
63deba02be
[Checkver] Support skipping up to date manifests ( #2624 )
...
- Lint file a bit
- Add synopsis
- Add default parameters
- Replace shortcutted cmdlets / parameters
- Add schema validation for VSCode
- Add recommended VSCode extensions
- Move everything from scoop-sublime-project into settings.json
- Small progress on #2609 and making developers life easier
2018-10-03 15:42:11 +02:00
Richard Kuhnt
8feb3867a7
checkver: add 'useragent' property
2018-09-18 19:31:23 +02:00
Richard Kuhnt
72754036a2
checkver: remove old commented code
2018-09-18 19:30:46 +02:00
Richard Kuhnt
76fdb6b74c
checkver: add 'jsonpath' alias for 'jp'
2018-09-18 19:29:48 +02:00
Richard Kuhnt
468649c88d
checkver: Add 're' alias 'regex'
2018-09-18 18:56:40 +02:00
Mathias Hermansson
2a2c2059e0
checkver: Resolve issue on Powershell >6.1.0 ( #2592 )
...
* Fixes #2591
2018-09-16 16:13:48 +02:00
Richard Kuhnt
607ac9ca7c
checkver: Allow using the current version in checkver URL
2018-09-14 18:33:42 +02:00
Richard Kuhnt
e52c24c94e
Add .NET 4.5 check to scoop install script (See #2487 )
2018-08-20 15:07:18 +02:00
xeijin
0d4312370b
Reset $errorActionPreference to original value ( #2489 )
...
For AppVeyor CI the `$errorActionPreference` setting is persisting after I install scoop, subsequently causing issues with installing scoop apps (e.g. failing the whole build because an installer executable outputs what looks like an error).
2018-08-11 20:47:28 +02:00
Ross Smith II
091c60c5fa
auto-pr: Change commit message to: app: Update ...
2018-06-23 07:28:33 -07:00
Ross Smith II
c7c9de46dc
Change commit message to: $app: update to x.y ( #2324 )
...
Change commit message to: $app: update to x.y
2018-06-22 13:14:25 +02:00
Richard Kuhnt
8d8452f21e
scoop-config: Small fix for Boolean config values (mentioned in #460 )
...
- `scoop config test $true` (fixed by using `$args[0]` instead of `$args`)
- `scoop config test $false` (fixed by `$null -ne $value`)
2018-05-04 18:46:39 +02:00
Richard Kuhnt
12962acfa8
Use consistent User-Agent Header on all webrequests
2018-03-18 16:35:01 +01: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
Steve Baker
31075f6200
Clean up some error messages ( #2032 )
...
Removes extra 'ERROR' in text where the `error` method is used.
Converts some `write-host "error message"` to use the `error` method
Converts some `write-host "error message"; exit 1` to use the `abort`
method.
2018-03-12 18:32:57 +01:00
Richard Kuhnt
126e9c97d2
Import config.ps1 in checkurls.ps1 (related to #2100 )
2018-03-07 18:32:57 +01:00
Chawye Hsu
e1bb1e91d0
Lint: PSAvoidUsingCmdletAliases ( #2075 )
2018-03-03 18:41:19 +01:00
Richard Kuhnt
8a67eeb8df
Prevent the -v option from overtaking other commands
2017-12-24 13:43:29 +01:00
Richard Kuhnt
b212655140
Fix handling of -h and -v parameter
2017-12-15 18:53:51 +01:00
Richard Kuhnt
c2200513c2
Add -v/--version parameter to show current git commit version
...
closes #1829
2017-12-15 18:46:43 +01:00
Mathias Hermansson
42ed53b0bf
Add replace for regexp, allow regexp and replace for jsonpaths ( #1709 )
...
* Add replace for regexp, allow regexp and replace for jsonpaths
* Remove extra space from if(!$ver)
* Check if replace property is a string instead of replace()-function
2017-09-28 19:38:22 +02:00
Ilja Nosik
ecc0e44969
Use the correct Regex.Matches method ( #1707 )
...
References #1704 .
2017-09-14 09:43:13 +02:00
Richard Kuhnt
806785c636
Remove the .NET 4.7 only Group.Name property from checkver.ps1
...
The Name property was first added to System.Text.RegularExpressions.Group with .NET 4.7 (See: https://msdn.microsoft.com/en-us/library/system.text.regularexpressions.group.name )
This change makes checkver.ps1 backward compatible with older .NET versions. (thanks @nightroman)
2017-09-13 18:59:40 +02:00
Richard Kuhnt
044b168fe6
Avoid using cmdlet aliases in installer script
2017-09-12 21:46:20 +02:00
Richard Kuhnt
141aa3df95
Add PowerShell 3 warning to scoop installer script
...
`#requires -v 3` doesn't get evaluated by running `iex` on the downloaded script.
Related issues #1700 , #1524 , #1462
2017-09-12 21:38:15 +02:00
Richard Kuhnt
c30a4c6432
Fix possible null reference
2017-09-12 20:06:21 +02:00
Richard Kuhnt
25dfc4d997
Rename variable so it doesn't impact automatic $matches variable (see #1704 )
2017-09-12 19:32:51 +02:00
Richard Kuhnt
82ec0fe7a1
Use Newtonsoft.Json for JSONPath querys
2017-09-10 18:04:03 +02:00
Richard Kuhnt
8098bf58b7
Add reverse property to checkver ( #1630 )
...
* Add reverse property to checkver
If set to true, the regex matches get reversed. This helps to find new versions in directory listings. (see x264)
* Update x264 to version 2851
2017-09-10 17:53:31 +02:00