开发者

how do I know what version of gjslint I have installed?

开发者 https://www.devze.com 2023-03-12 15:42 出处:网络
This may be a dumb 开发者_StackOverflowquestion, but I cannot figure it out. Doing gjslint --help does not provide the answer, and --version is not a valid flag.

This may be a dumb 开发者_StackOverflowquestion, but I cannot figure it out. Doing gjslint --help does not provide the answer, and --version is not a valid flag.

Any ideas?


Run this command:

cat `which gjslint` | grep [0-9] --color=always

or

cat $(which gjslint) | grep [0-9] --color=always


This one-liner prints out only the version number, convenient eg. if you want to use it in a script:

which gjslint | xargs cat | grep "ENTRY-SCRIPT" | sed 's|.*closure-linter==\([.0-9]*\).*|\1|'
0

精彩评论

暂无评论...
验证码 换一张
取 消