binary_loader
flavor.helpers.binary_loader
¶
TODO: Add module docstring.
Classes¶
BinaryLoader
¶
Handles helper binary loading, building, and testing.
Initialize with reference to parent manager.
Source code in flavor/helpers/binary_loader.py
Attributes¶
Functions¶
build_helpers
¶
Build helper binaries from source.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
language
|
str | None
|
Language to build ("go", "rust", or None for all) |
None
|
force
|
bool
|
Force rebuild even if binaries exist |
False
|
Returns:
| Type | Description |
|---|---|
list[Path]
|
List of built binary paths |
Source code in flavor/helpers/binary_loader.py
clean_helpers
¶
Clean built helper binaries.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
language
|
str | None
|
Language to clean ("go", "rust", or None for all) |
None
|
Returns:
| Type | Description |
|---|---|
list[Path]
|
List of removed binary paths |
Source code in flavor/helpers/binary_loader.py
get_helper
¶
Get path to a helper binary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Helper name (e.g., "flavor-rs-launcher") |
required |
Returns:
| Type | Description |
|---|---|
Path
|
Path to the helper binary |
Raises:
| Type | Description |
|---|---|
FileNotFoundError
|
If helper not found |
Source code in flavor/helpers/binary_loader.py
test_helpers
¶
Test helper binaries.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
language
|
str | None
|
Language to test ("go", "rust", or None for all) |
None
|
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
Test results dict with 'passed' and 'failed' lists |