[英]how do I know what version of gjslint I have installed?
This may be a dumb question, but I cannot figure it out.这可能是一个愚蠢的问题,但我无法弄清楚。 Doing gjslint --help does not provide the answer, and --version is not a valid flag.
执行 gjslint --help 不能提供答案,并且 --version 不是有效标志。
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|'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.