api: rename 'show_mdns' -> 'list_mdns_services'

This commit is contained in:
Johannes Kirschbauer
2025-07-07 10:49:46 +02:00
parent 972059ebe4
commit 874faad285
3 changed files with 6 additions and 6 deletions

View File

@@ -88,7 +88,7 @@ def parse_avahi_output(output: str) -> DNSInfo:
@API.register
def show_mdns() -> DNSInfo:
def list_mdns_services() -> DNSInfo:
cmd = nix_shell(
["avahi"],
[
@@ -107,7 +107,7 @@ def show_mdns() -> DNSInfo:
def mdns_command(args: argparse.Namespace) -> None:
dns_info = show_mdns()
dns_info = list_mdns_services()
for name, info in dns_info.services.items():
print(f"Hostname: {name} - ip: {info.ip}")