Skip to content

Commit 4e79887

Browse files
committed
rename grepdom to grepdomain
1 parent 1c3a3fa commit 4e79887

File tree

14 files changed

+34
-34
lines changed

14 files changed

+34
-34
lines changed

grepdom/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22
FROM alpine:latest
33

4-
WORKDIR /grepdom
5-
COPY build/grepdom ./
6-
ENTRYPOINT ["/grepdom/grepdom"]
4+
WORKDIR /grepdomain
5+
COPY build/grepdomain ./
6+
ENTRYPOINT ["/grepdomain/grepdomain"]

grepdom/build-all-platforms.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ ROOT=$DIR/..
99

1010
VSN=$1
1111

12-
$ROOT/scripts/build-all-platforms.sh "grepdom" $VSN
12+
$ROOT/scripts/build-all-platforms.sh "grepdomain" $VSN

grepdom/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ set -e
77
DIR=`dirname $0`
88
ROOT=$DIR/..
99

10-
$ROOT/scripts/build.sh "grepdom"
10+
$ROOT/scripts/build.sh "grepdomain"

grepdom/deb.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
VSN=1.0.0
44

5-
curl -LO https://github.com/ipinfo/cli/releases/download/grepdom-${VSN}/grepdom_${VSN}.deb
6-
sudo dpkg -i grepdom_${VSN}.deb
7-
rm grepdom_${VSN}.deb
5+
curl -LO https://github.com/ipinfo/cli/releases/download/grepdomain-${VSN}/grepdomain_${VSN}.deb
6+
sudo dpkg -i grepdomain_${VSN}.deb
7+
rm grepdomain_${VSN}.deb
88

99
echo
10-
echo 'You can now run `grepdom`'.
10+
echo 'You can now run `grepdomain`'.
1111

1212
if [ -f "$0" ]; then
1313
rm $0

grepdom/dist/DEBIAN/control

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
Source: grepdom
1+
Source: grepdomain
22
Section: utils
33
Version: 1.0.0
44
Priority: optional
55
Maintainer: IPinfo <support@ipinfo.io>
66
Vcs-Git: https://github.com/ipinfo/cli
77
Vcs-browser: https://github.com/ipinfo/cli
88
Homepage: https://ipinfo.io
9-
Package: grepdom
9+
Package: grepdomain
1010
Architecture: amd64
1111
Description: A grep-like tool for matching domain names.

grepdom/docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ ROOT=$DIR/..
1111
VSN=$1
1212
RELEASE=$2
1313

14-
$ROOT/scripts/docker.sh "grepdom" $VSN $RELEASE
14+
$ROOT/scripts/docker.sh "grepdomain" $VSN $RELEASE

grepdom/macos.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
VSN=1.0.0
44
PLAT=darwin_amd64
55

6-
curl -LO https://github.com/ipinfo/cli/releases/download/grepdom-${VSN}/grepdom_${VSN}_${PLAT}.tar.gz
7-
tar -xf grepdom_${VSN}_${PLAT}.tar.gz
8-
rm grepdom_${VSN}_${PLAT}.tar.gz
9-
mv grepdom_${VSN}_${PLAT} /usr/local/bin/grepdom
6+
curl -LO https://github.com/ipinfo/cli/releases/download/grepdomain-${VSN}/grepdomain_${VSN}_${PLAT}.tar.gz
7+
tar -xf grepdomain_${VSN}_${PLAT}.tar.gz
8+
rm grepdomain_${VSN}_${PLAT}.tar.gz
9+
mv grepdomain_${VSN}_${PLAT} /usr/local/bin/grepdomain
1010

1111
echo
12-
echo 'You can now run `grepdom`'.
12+
echo 'You can now run `grepdomain`'.
1313

1414
if [ -f "$0" ]; then
1515
rm $0

grepdom/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ ROOT=$DIR/..
99

1010
VSN=$1
1111

12-
$ROOT/scripts/release.sh "grepdom" $VSN
12+
$ROOT/scripts/release.sh "grepdomain" $VSN

grepdom/windows.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
$VSN = "1.0.0"
22

33
# build the filename for the Zip archive and exe file
4-
$FileName = "grepdom_$($VSN)_windows_amd64"
4+
$FileName = "grepdomain_$($VSN)_windows_amd64"
55
$ZipFileName = "$($FileName).zip"
66

77
# download and extract zip
8-
Invoke-WebRequest -Uri "https://github.com/ipinfo/cli/releases/download/grepdom-$VSN/$FileName.zip" -OutFile ./$ZipFileName
8+
Invoke-WebRequest -Uri "https://github.com/ipinfo/cli/releases/download/grepdomain-$VSN/$FileName.zip" -OutFile ./$ZipFileName
99
Unblock-File ./$ZipFileName
1010
Expand-Archive -Path ./$ZipFileName -DestinationPath $env:LOCALAPPDATA\ipinfo -Force
1111

1212
# delete if already exists
13-
if (Test-Path "$env:LOCALAPPDATA\ipinfo\grepdom.exe") {
14-
Remove-Item "$env:LOCALAPPDATA\ipinfo\grepdom.exe"
13+
if (Test-Path "$env:LOCALAPPDATA\ipinfo\grepdomain.exe") {
14+
Remove-Item "$env:LOCALAPPDATA\ipinfo\grepdomain.exe"
1515
}
16-
Rename-Item -Path "$env:LOCALAPPDATA\ipinfo\$FileName.exe" -NewName "grepdom.exe"
16+
Rename-Item -Path "$env:LOCALAPPDATA\ipinfo\$FileName.exe" -NewName "grepdomain.exe"
1717

1818
# setting up env.
1919
$PathContent = [Environment]::GetEnvironmentVariable('path', 'Machine')
@@ -31,4 +31,4 @@ else {
3131

3232
# cleaning files
3333
Remove-Item -Path ./$ZipFileName
34-
"You can use grepdom now."
34+
"You can use grepdomain now."

ipinfo/cmd_default.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Commands:
2727
prips print IP list from CIDR or range.
2828
grepip grep for IPs matching criteria from any source.
2929
matchip print the overlapping IPs and subnets.
30-
grepdom grep for domains matching criteria from any source.
30+
grepdomain grep for domains matching criteria from any source.
3131
cidr2range convert CIDRs to IP ranges.
3232
cidr2ip convert CIDRs to individual IPs within those CIDRs.
3333
range2cidr convert IP ranges to CIDRs.

0 commit comments

Comments
 (0)