every libs/*.py and hooks/*.py now starts with a one-line module docstring; every bin/* script starts with a `# purpose:` header. discovery-by-`ls`-and-read instead of by index. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
10 lines
288 B
Python
Executable file
10 lines
288 B
Python
Executable file
#!/usr/bin/env python3
|
|
# purpose: wake one node via WoL by name — usage: wake <node>.
|
|
|
|
from bundlewrap.repo import Repository
|
|
from os.path import realpath, dirname
|
|
from sys import argv
|
|
|
|
repo = Repository(dirname(dirname(realpath(__file__))))
|
|
|
|
repo.libs.wol.wake(repo.get_node(argv[1]))
|