mirror of
https://github.com/chatmail/relay.git
synced 2026-06-26 05:21:06 +00:00
fc382b1062
The get_parser() loop that scanned globals() for *_cmd names was fragile and forced # noqa: F401 on all lxc imports (ruff couldn't see they were used dynamically). Replace it with an explicit SUBCOMMANDS list of (cmd_func, options_func, needs_config) tuples. This makes the full set of subcommands visible at a glance, their registration order defined, and the imports unconditionally used (no more noqa suppressions). Also add --ssh-config option to run/dns/status/test so all SSH resolution can go through a config file, used by lxc-test for completely local setups.