mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
latest twiddling :(
This commit is contained in:
parent
ef398bf673
commit
122267cd9e
10 changed files with 318 additions and 27 deletions
|
|
@ -19,53 +19,58 @@ export RUNE_SRC=${HOME}/src/rune
|
|||
export GO_MONO=${RUNE_SRC}/go-mono
|
||||
# Params: the command to execute in each source sub dir
|
||||
iterate-source-dirs() {
|
||||
page-break
|
||||
cd $GO_MONO
|
||||
|
||||
TLD=$(pwd)
|
||||
|
||||
for DIR in gorune carrotstream tortilla; do
|
||||
echo "DIR: $DIR"
|
||||
cd $DIR
|
||||
$*
|
||||
RESULT=$?
|
||||
if [ $RESULT -ne "0" ]; then
|
||||
echo "\n\n$* failed in $DIR, exiting."
|
||||
fi
|
||||
today-time
|
||||
echo -e "\ncd $GO_MONO"
|
||||
cd $GO_MONO
|
||||
done
|
||||
|
||||
TLD=$(pwd)
|
||||
|
||||
for DIR in gorune carrotstream tortilla; do
|
||||
echo "DIR: $DIR"
|
||||
cd $DIR
|
||||
$*
|
||||
RESULT=$?
|
||||
if [ $RESULT -ne "0" ]; then
|
||||
echo "\n\n$* failed in $DIR, exiting."
|
||||
fi
|
||||
cd $GO_MONO
|
||||
done
|
||||
}
|
||||
|
||||
go-make-mocks() {
|
||||
iterate-source-dirs make mocks
|
||||
iterate-source-dirs make mocks
|
||||
}
|
||||
|
||||
go-lint() {
|
||||
iterate-source-dirs golangci-lint run -v --timeout 2m0s ./...
|
||||
iterate-source-dirs golangci-lint run -v --timeout 2m0s ./...
|
||||
}
|
||||
|
||||
go-build() {
|
||||
iterate-source-dirs go build ./...
|
||||
iterate-source-dirs go build ./...
|
||||
}
|
||||
|
||||
go-fmt() {
|
||||
iterate-source-dirs go fmt ./...
|
||||
}
|
||||
|
||||
go-make() {
|
||||
iterate-source-dirs make
|
||||
iterate-source-dirs make
|
||||
}
|
||||
|
||||
go-test() {
|
||||
iterate-source-dirs go test ./...
|
||||
iterate-source-dirs go test ./...
|
||||
}
|
||||
|
||||
go-make-clean() {
|
||||
iterate-source-dirs make clean
|
||||
iterate-source-dirs make clean
|
||||
}
|
||||
|
||||
psgr-rune() {
|
||||
psgr 'taco|tortilla|broccoli|influx|carrotstream|artichoke'
|
||||
psgr 'taco|tortilla|broccoli|influx|carrotstream|artichoke'
|
||||
}
|
||||
|
||||
gitignore-update() {
|
||||
pushd ${HOME}/src/rune/go-mono
|
||||
echo -e "\nprod-query*/" >>.gitignore
|
||||
popd
|
||||
pushd ${HOME}/src/rune/go-mono
|
||||
echo -e "\nprod-query*/" >>.gitignore
|
||||
popd
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue