WIP autoscaler agent
This commit is contained in:
parent
c610a3e284
commit
28059dcedf
34 changed files with 2409 additions and 35 deletions
26
agent/nix_builder_autoscaler/cli.py
Normal file
26
agent/nix_builder_autoscaler/cli.py
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
"""autoscalerctl CLI entry point — stub for Plan 04."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import sys
|
||||
|
||||
|
||||
def main() -> None:
|
||||
"""Entry point for the autoscalerctl CLI."""
|
||||
parser = argparse.ArgumentParser(prog="autoscalerctl", description="Autoscaler CLI")
|
||||
parser.add_argument(
|
||||
"--socket", default="/run/nix-builder-autoscaler/daemon.sock", help="Daemon socket path"
|
||||
)
|
||||
subparsers = parser.add_subparsers(dest="command")
|
||||
subparsers.add_parser("status", help="Show daemon status")
|
||||
subparsers.add_parser("slots", help="List slots")
|
||||
subparsers.add_parser("reservations", help="List reservations")
|
||||
|
||||
args = parser.parse_args()
|
||||
if not args.command:
|
||||
parser.print_help()
|
||||
sys.exit(1)
|
||||
|
||||
print(f"autoscalerctl: command '{args.command}' not yet implemented")
|
||||
sys.exit(1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue