Commit Graph
167 Commits
Author SHA1 Message Date
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
  * ![wrong syntax](https://i.imgur.com/CgoXlvo.png)
* 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
Richard Kuhnt 3d145e0b8f Fix forced updates on unix in auto-pr.ps1 2017-08-24 22:30:38 +02:00
Richard Kuhnt 3f495c6eb2 Add output for forced updates to auto-pr.ps1 2017-08-24 22:17:40 +02:00
Richard Kuhnt 8cc4a7a77b auto-pr.ps1: detect LR/CRLF changes and skip them
This is mainly for Unix
2017-06-10 17:48:25 +02:00
Richard Kuhnt d575c0a5dd Add $specialSnowflakes parameter to auto-pr.ps1
Comma separated list of apps which should be force updated
2017-06-10 16:50:59 +02:00
Richard Kuhnt 2d8e2a079a Remove wrong continue from checkver.ps1 2017-06-10 15:49:04 +02:00
Richard Kuhnt 492dc44b4d Improve force update logic in checkver.ps1
force update now really forces an update (prior to this change it only worked when the versions were the same)
2017-06-10 15:45:27 +02:00
Richard Kuhnt 5d8f276035 Change $dir behavior in auto-pr.ps1
Accompanies changes in scoop-extras and versions bin scripts
2017-05-31 00:02:15 +02:00
Richard Kuhnt f737315e73 Merge pull request #1517 from lukesampson/unix-compatible
[WIP] Add Unix compatibility (for maintenance jobs and manifest testing)
2017-05-30 21:59:15 +02:00
Luke Sampson 887f041fc7 Extract to _tmp instead of _scoop_extract to conserve 10 more characters in path. 2017-05-29 17:59:09 +10:00
Richard Kuhnt 24fd3a3c7e Move unix compatible functions to unix.ps1
- Change helper functions to snake_case
2017-05-28 13:59:42 +02:00
Richard Kuhnt 687fcaabb2 Fix response closed and freed before usage 2017-05-27 18:27:02 +02:00