scglue.check.CmdChecker
- class scglue.check.CmdChecker(name, cmd, vregex, vmin=None, install_hint=None)[源代码]
基类:
CheckerChecks availability and version of a command line dependency
- 参数:
name (
str) – Name of the dependencycmd (
str) – Command used to check versionvregex (
str) – Regular expression used to extract version from command outputvmin (
typing.Optional[str]) – Minimal required versioninstall_hint (
typing.Optional[str]) – Install hint message to be printed if dependency is unavailable
方法
Check availability and version