mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 13:32:50 -05:00
* ci: change to prek for pre-commit * refactor: fix shellcheck warnings for the scripts * chore: unify whitespace formatting * nix: add prek to dev shell
10 lines
347 B
Bash
Executable File
10 lines
347 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
# Runs go generate for each directory, but in parallel. Any arguments are appended to the
|
|
# go generate command.
|
|
# Usage: $ ./generatep [go generate arguments]
|
|
# Print all generate commands: $ ./generatep -x
|
|
|
|
cd ./wayland || exit 1
|
|
find . -type f -name '*.go' -exec dirname {} \; | sort -u | parallel -j 0 go generate "$1" {}/.
|