1 个稳定版本
1.0.0 | 2021年2月27日 |
---|
#39 在 #gitignore
18KB
93 代码行
check-ignore
一个简单的命令行工具,用于检查文件是否被 .gitignore 文件中的模式忽略。
用法
check-ignore 1.0.0
Exits with non-zero code if files provided don't match at least one pattern.
Outputs results of the form `pattern => file`.
USAGE:
check-ignore [FLAGS] [OPTIONS] [FILES]...
FLAGS:
-d, --debug Activate debug mode
-g, --global Use global gitignore
-h, --help Prints help information
-V, --version Prints version information
-v, --verbose Verbose mode (-v, -vv, -vvv, etc.)
-w, --whitelist Also print whitelisted files
OPTIONS:
-i, --ignore-file <ignore-file> .gitignore file [default: .gitignore]
--no-color <no-color> Disable colorful output [env: NO_COLOR=]
-r, --root <root> Root for checking file
ARGS:
<FILES>... Files to check
依赖项
~6–16MB
~184K SLoC