25 lines
651 B
Python
25 lines
651 B
Python
|
|
"""Daemon entry point: python -m nix_builder_autoscaler — stub for Plan 04."""
|
||
|
|
|
||
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
import argparse
|
||
|
|
import sys
|
||
|
|
|
||
|
|
|
||
|
|
def main() -> None:
|
||
|
|
"""Parse arguments and start the daemon."""
|
||
|
|
parser = argparse.ArgumentParser(
|
||
|
|
prog="nix-builder-autoscaler",
|
||
|
|
description="Nix builder autoscaler daemon",
|
||
|
|
)
|
||
|
|
parser.add_argument("--config", required=True, help="Path to TOML config file")
|
||
|
|
args = parser.parse_args()
|
||
|
|
|
||
|
|
print(f"nix-builder-autoscaler: would start with config {args.config}")
|
||
|
|
print("Full daemon implementation in Plan 04.")
|
||
|
|
sys.exit(0)
|
||
|
|
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
main()
|