Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这可能是一个愚蠢的问题,但我无法弄清楚。执行 gjslint --help 不能提供答案,并且 --version 不是有效标志。
有任何想法吗?
运行此命令:
cat `which gjslint` | grep [0-9] --color=always
或者
cat $(which gjslint) | grep [0-9] --color=always
这个单行只打印版本号,方便例如。如果你想在脚本中使用它:
which gjslint | xargs cat | grep "ENTRY-SCRIPT" | sed 's|.*closure-linter==\([.0-9]*\).*|\1|'