MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / get_variants

Function get_variants

scripts/util.py:133–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131
132@cache
133def get_variants() -> List[Variant]:
134 match platform.system():
135 case "Darwin":
136 return [Variant.FULL]
137 case "Linux":
138 is_ubuntu = "ubuntu" in platform.version().lower()
139 if is_ubuntu:
140 return [Variant.FULL]
141 else:
142 return [Variant.MINIMAL]
143 case other:
144 raise ValueError(f"Unsupported platform {other}")
145
146
147class Package(Enum):

Callers 1

all_testsFunction · 0.90

Calls 1

versionMethod · 0.45

Tested by 1

all_testsFunction · 0.72