muelle.cli
Source: src/muelle/cli.py.
muelle: admin CLI on the host.
Operations that should not depend on CI being available. Reads the same
MUELLE_CONFIG and takes the same locks as the worker; the NixOS module's
`muelle` wrapper sets MUELLE_CONFIG and runs it as the muelle user.
Commands that change slots (prune, teardown, rm) are recorded like hook
requests: a `host-...` status file and log, then the listing is refreshed.
CliError
class CliError(Exception)
status
def status(config: Config, sites: list[str], out: IO[str]) -> None
releases
def releases(config: Config, site: str, slot: str, out: IO[str]) -> None
jobs
def jobs(config: Config, limit: int, site: str | None, out: IO[str]) -> None
show_log
def show_log(config: Config, id: str, out: IO[str]) -> None
host_job
def host_job(config: Config, description: str, out: IO[str], **job: str) -> Generator[str]
Records a host action like a hook request: job and status files, log, then the listing.
teardown
def teardown(config: Config, site: str, branch: str, out: IO[str]) -> None
rm
def rm(config: Config, site: str, slot: str, out: IO[str]) -> None
prune
def prune(config: Config, sites: list[str], out: IO[str]) -> None
run
def run(argv: Sequence[str], config: Config, out: IO[str] = sys.stdout) -> int
main
def main() -> int