Skip to content

Commit 0b1443d

Browse files
authored
add dev shell wrappers (#702)
1 parent 1424f80 commit 0b1443d

File tree

3 files changed

+75
-0
lines changed

3 files changed

+75
-0
lines changed

ttopaz-backup

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env bash
2+
3+
BIN=topaz-backup
4+
5+
set -o errexit
6+
set -o nounset
7+
set -o pipefail
8+
9+
BIN_PATH=${PWD}/dist/${BIN}_$(go env GOOS)_$(go env GOARCH)
10+
11+
if [[ -n $(go env GOARM64) ]] then
12+
BIN_PATH+="_"$(go env GOARM64)
13+
fi
14+
15+
if [[ -n $(go env GOAMD64) ]] then
16+
BIN_PATH+="_"$(go env GOAMD64)
17+
fi
18+
19+
BIN_PATH+="/${BIN}"
20+
21+
if [ ! -f $BIN_PATH ]; then
22+
echo "local binary \"${BIN_PATH}\" not found!"
23+
fi
24+
25+
${BIN_PATH} $*

ttopaz-db

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env bash
2+
3+
BIN=topaz-db
4+
5+
set -o errexit
6+
set -o nounset
7+
set -o pipefail
8+
9+
BIN_PATH=${PWD}/dist/${BIN}_$(go env GOOS)_$(go env GOARCH)
10+
11+
if [[ -n $(go env GOARM64) ]] then
12+
BIN_PATH+="_"$(go env GOARM64)
13+
fi
14+
15+
if [[ -n $(go env GOAMD64) ]] then
16+
BIN_PATH+="_"$(go env GOAMD64)
17+
fi
18+
19+
BIN_PATH+="/${BIN}"
20+
21+
if [ ! -f $BIN_PATH ]; then
22+
echo "local binary \"${BIN_PATH}\" not found!"
23+
fi
24+
25+
${BIN_PATH} $*

ttopazd

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env bash
2+
3+
BIN=topazd
4+
5+
set -o errexit
6+
set -o nounset
7+
set -o pipefail
8+
9+
BIN_PATH=${PWD}/dist/${BIN}_$(go env GOOS)_$(go env GOARCH)
10+
11+
if [[ -n $(go env GOARM64) ]] then
12+
BIN_PATH+="_"$(go env GOARM64)
13+
fi
14+
15+
if [[ -n $(go env GOAMD64) ]] then
16+
BIN_PATH+="_"$(go env GOAMD64)
17+
fi
18+
19+
BIN_PATH+="/${BIN}"
20+
21+
if [ ! -f $BIN_PATH ]; then
22+
echo "local binary \"${BIN_PATH}\" not found!"
23+
fi
24+
25+
${BIN_PATH} $*

0 commit comments

Comments
 (0)