Add remove unused script
This commit is contained in:
parent
f8eafb781b
commit
e4aedc6f6e
1 changed files with 23 additions and 0 deletions
23
remove-unused.sh
Executable file
23
remove-unused.sh
Executable file
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e -o pipefail
|
||||||
|
|
||||||
|
function remove_unused() {
|
||||||
|
git rm -rf --ignore-unmatch \
|
||||||
|
.github \
|
||||||
|
tests \
|
||||||
|
*_test.go \
|
||||||
|
**/*_test.go \
|
||||||
|
conn/bindtest \
|
||||||
|
tun/netstack \
|
||||||
|
tun/tuntest \
|
||||||
|
tun/testdata \
|
||||||
|
main*.go \
|
||||||
|
*.md
|
||||||
|
}
|
||||||
|
|
||||||
|
remove_unused
|
||||||
|
remove_unused
|
||||||
|
|
||||||
|
go mod tidy
|
||||||
|
git commit -a -m "Remove unused"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue