MCPcopy Index your code
hub / github.com/apache/caldera / check_program_version

Method check_program_version

app/utility/base_world.py:127–129  ·  view source on GitHub ↗
(command, version, **kwargs)

Source from the content-addressed store, hash-verified

125 return compare_versions(mod_version, version)
126
127 def check_program_version(command, version, **kwargs):
128 output = subprocess.check_output(command.split(' '), stderr=subprocess.STDOUT, shell=False, timeout=10)
129 return compare_versions(output.decode('utf-8'), version)
130
131 def compare_versions(version_string, minimum_version):
132 version = parse_version(version_string)

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected