## versions.get versions.get() Returns the current Bazel version ## versions.parse versions.parse(bazel_version) Parses a version string into a 3-tuple of ints int tuples can be compared directly using binary operators (<, >). ### Parameters
versions.get()
versions.parse(bazel_version)
bazel_version
the Bazel version string
versions.check(minimum_bazel_version, maximum_bazel_version, bazel_version)
minimum_bazel_version
minimum version of Bazel expected
maximum_bazel_version
None
maximum version of Bazel expected
the version of Bazel to check. Used for testing, defaults to native.bazel_version
versions.is_at_most(threshold, version)
threshold
the maximum version string
version
the version string to be compared to the threshold
versions.is_at_least(threshold, version)
the minimum version string