-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1908 from TheCakeIsNaOH/everything-cli
- Loading branch information
Showing
7 changed files
with
182 additions
and
0 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# <img src="https://cdn.jsdelivr.net/gh/chocolatey-community/chocolatey-packages@cf277846cf6b5436461ebd5f21b00efd67ee9910/icons/everything.png" width="48" height="48"/> [es](https://chocolatey.org/packages/es) | ||
|
||
ES is a command line interface to search Everything from a command prompt. | ||
|
||
"Everything" is an administrative tool that locates files and folders by filename instantly for Windows. | ||
Unlike Windows search "Everything" initially displays every file and folder on your computer (hence the name "Everything"). | ||
You type in a search filter to limit what files and folders are displayed. | ||
|
||
## Features | ||
|
||
- Search files with regex | ||
- Many switch with which to sort results | ||
- Small installation file | ||
- Quick file indexing | ||
- Quick searching | ||
- Minimal resource usage | ||
- [More ...](https://www.voidtools.com/faq/) | ||
|
||
## Notes | ||
|
||
- ES Requires Everything to be running to function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0"?> | ||
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. --> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"> | ||
<metadata> | ||
<id>es</id> | ||
<version>0.0.1</version> | ||
<title>Everything Command Line</title> | ||
<authors>David Carpenter</authors> | ||
<owners>chocolatey-community, TheCakeIsNaOH</owners> | ||
<licenseUrl>http://www.voidtools.com/License.txt</licenseUrl> | ||
<projectUrl>https://www.voidtools.com/support/everything/command_line_interface/</projectUrl> | ||
<iconUrl>https://cdn.jsdelivr.net/gh/chocolatey-community/chocolatey-packages@cf277846cf6b5436461ebd5f21b00efd67ee9910/icons/everything.png</iconUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description><![CDATA[ES is a command line interface to search Everything from a command prompt. | ||
"Everything" is an administrative tool that locates files and folders by filename instantly for Windows. | ||
Unlike Windows search "Everything" initially displays every file and folder on your computer (hence the name "Everything"). | ||
You type in a search filter to limit what files and folders are displayed. | ||
]]></description> | ||
<summary>Everything Search Engine Command Line - locate files and folders by name instantly</summary> | ||
<copyright>2022 David Carpenter</copyright> | ||
<tags>everything file-system indexing freeware file search ntfs</tags> | ||
<docsUrl>https://www.voidtools.com/support/everything/command_line_interface/</docsUrl> | ||
<mailingListUrl>https://www.voidtools.com/forum/</mailingListUrl> | ||
<bugTrackerUrl>https://www.voidtools.com/forum/viewforum.php?f=6</bugTrackerUrl> | ||
<packageSourceUrl>https://github.com/chocolatey-community/chocolatey-packages/tree/master/automatic/es</packageSourceUrl> | ||
<dependencies> | ||
<dependency id="everything" version="1.2.0" /> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="tools\**" target="tools" /> | ||
<file src="legal\**" target="legal" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
Everything | ||
|
||
Copyright (C) 2016 David Carpenter | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a | ||
copy of this software and associated documentation files (the "Software"), | ||
to deal in the Software without restriction, including without limitation | ||
the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
and/or sell copies of the Software, and to permit persons to whom the | ||
Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
DEALINGS IN THE SOFTWARE. | ||
|
||
Perl-Compatible Regular Expressions | ||
|
||
Copyright (c) 1997-2012 University of Cambridge | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, | ||
this list of conditions and the following disclaimer. | ||
|
||
* Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in the | ||
documentation and/or other materials provided with the distribution. | ||
|
||
* Neither the name of the University of Cambridge nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE | ||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
VERIFICATION | ||
|
||
Verification is intended to assist the Chocolatey moderators and community | ||
in verifying that this package's contents are trustworthy. | ||
|
||
Package can be verified like this: | ||
|
||
1. Go to | ||
|
||
x32: https://www.voidtools.com/ES-1.1.0.23.zip | ||
|
||
to download the archive. | ||
|
||
2. You can use one of the following methods to obtain the SHA256 checksum: | ||
- Use powershell function 'Get-FileHash' | ||
- Use Chocolatey utility 'checksum.exe' | ||
|
||
checksum32: E8AC817AE276BA1D12044A65444C109F284015BA985D29201A9FD4F38B5E6187 | ||
|
||
Using AU: | ||
|
||
Get-RemoteChecksum https://www.voidtools.com/ES-1.1.0.23.zip | ||
|
||
File 'License.txt' is obtained from: | ||
https://www.voidtools.com/License.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
$ErrorActionPreference = 'Stop' | ||
$toolsDir = Split-Path $MyInvocation.MyCommand.Definition | ||
|
||
$packageArgs = @{ | ||
packageName = 'es' | ||
FileFullPath = "$toolsDir\ES-1.1.0.23.zip" | ||
Destination = $toolsDir | ||
} | ||
|
||
Get-ChocolateyUnzip @packageArgs | ||
|
||
Remove-Item -Path $toolsDir\*.zip -Force -EA 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import-module au | ||
|
||
$releases = 'https://www.voidtools.com/downloads' | ||
|
||
function global:au_SearchReplace { | ||
@{ | ||
".\tools\chocolateyInstall.ps1" = @{ | ||
"(?i)(^\s*packageName\s*=\s*)('.*')" = "`$1'$($Latest.PackageName)'" | ||
"(?i)(^\s*FileFullPath\s*=\s*`"[$]toolsDir\\).*" = "`${1}$($Latest.FileName32)`"" | ||
} | ||
|
||
".\legal\VERIFICATION.txt" = @{ | ||
"(?i)(\s+x32:).*" = "`${1} $($Latest.URL32)" | ||
"(?i)(checksum32:).*" = "`${1} $($Latest.Checksum32)" | ||
"(?i)(Get-RemoteChecksum).*" = "`${1} $($Latest.URL32)" | ||
} | ||
} | ||
} | ||
|
||
function global:au_BeforeUpdate { | ||
Get-RemoteFiles -Purge -NoSuffix | ||
} | ||
|
||
function global:au_GetLatest { | ||
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing | ||
$re = "ES-[\d\.]+\.zip" | ||
$urlPath = $download_page.links | ? href -match $re | Select-Object -First 1 -Expand href | ||
$version = ($urlPath -split '-' | Select-Object -Last 1).trim(".zip") | ||
@{ | ||
Version = $version | ||
URL32 = 'https://www.voidtools.com' + $urlPath | ||
PackageName = 'es' | ||
} | ||
} | ||
|
||
update -ChecksumFor none |