1 Star 0 Fork 0

tracyers/lesskeeper

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
gorun 584 Bytes
Copy Edit Raw Blame History
#!/bin/bash
echo "DIRs"
find ./src -type d | wc -l
echo "FILEs"
find ./src -type f | wc -l
echo "LINEs"
find ./src -name "*.go" |xargs cat|grep -v ^$|wc -l
echo "DETAILs"
find ./src -type f -name "*.go" | xargs wc -l | sort -n
dirs=`find ./src -type d |xargs`
for dir in $dirs; do
echo ${dir}
gofmt -tabwidth=4 -tabs=false -w=true ${dir}/*.go
done
rm -f ./bin/lesskeeper
go build -ldflags "-w -s" -o ./bin/lesskeeper ./src/main.go ./src/proposer.go ./src/acceptor.go ./src/cmdaction.go ./src/jtloc.go ./src/version.go
prefix=`pwd`
./bin/lesskeeper --prefix=${prefix}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/tracyers/lesskeeper.git
git@gitee.com:tracyers/lesskeeper.git
tracyers
lesskeeper
lesskeeper
master

Search