문제

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.

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 ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top