Coverage for app/venv/lib/python3.14/site-packages/weblate/vcs/management/commands/cleanup_ssh_keys.py: 0%
6 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-07 07:15 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-07 07:15 +0000
1# Copyright © Michal Čihař <michal@weblate.org>
2#
3# SPDX-License-Identifier: GPL-3.0-or-later
5from weblate.utils.management.base import BaseCommand
6from weblate.vcs.ssh import cleanup_host_keys
9class Command(BaseCommand):
10 help = "removes duplicate and invalid entries from SSH host keys"
12 def handle(self, *args, **options) -> None:
13 cleanup_host_keys(logger=self.stdout.write)