1个稳定版本
2.1.0 | 2024年5月1日 |
---|
#925 in 开发工具
23KB
572 代码行
ProjectAnalyzer
快速Rust二进制文件,用于统计代码库的行数。
使用方法
Fast Rust binary that counts line numbers of a codebase
Usage: project_analyzer [OPTIONS] [COMMAND]
Commands:
update Opens github
help Print this message or the help of the given subcommand(s)
Options:
-r, --root-dir <ROOT_DIR> Number of times to greet [default: .]
--ignore <IGNORE> Example: project_analyzer --ignore node_modules --ignore dist
-w, --watch Will keep running and update result whenever anything changed
-p, --postfixes <POSTFIXES> Filter by list of file postfixes example: project_analyzer --postfixes py,rs,cpp
-j, --json Output as json
-h, --help Print help
-V, --version Print version
安装
1. 下载二进制文件
发布页面
或自行构建
cd /tmp
git clone [email protected]:ali77gh/ProjectAnalyzer.git
cd ProjectAnalyzer
cargo build --release
2. 将二进制文件添加到您的PATH
# linux
cp ./target/release/project_analyzer /usr/bin
# MacOS
cp ./target/release/project_analyzer /usr/local/bin/
# Windows
# add binary to Environment Variables Path
依赖项
~14–28MB
~441K SLoC