From df03655bc5dde87a8fa95fd08308ecb4b3d3eaae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 24 Jul 2026 23:05:06 +0200 Subject: [PATCH] resolvectl: convert to VERB_COMMAND --- src/resolve/resolvconf-compat.c | 41 ++++++++++------------------ src/resolve/resolvectl.c | 47 +++++++-------------------------- 2 files changed, 24 insertions(+), 64 deletions(-) diff --git a/src/resolve/resolvconf-compat.c b/src/resolve/resolvconf-compat.c index d3ddec755a..9b556469a7 100644 --- a/src/resolve/resolvconf-compat.c +++ b/src/resolve/resolvconf-compat.c @@ -2,18 +2,18 @@ #include +#include "sd-json.h" + #include "alloc-util.h" #include "build.h" #include "extract-word.h" #include "fileio.h" -#include "format-table.h" -#include "help-util.h" #include "log.h" -#include "options.h" #include "resolvconf-compat.h" #include "resolvectl.h" #include "string-util.h" #include "strv.h" +#include "verbs.h" typedef enum LookupType { LOOKUP_TYPE_REGULAR, @@ -21,35 +21,22 @@ typedef enum LookupType { LOOKUP_TYPE_EXCLUSIVE, /* -x */ } LookupType; -static int resolvconf_help(void) { - _cleanup_(table_unrefp) Table *options = NULL; - int r; - - r = option_parser_get_help_table_ns("resolvconf", &options); - if (r < 0) - return r; - - help_cmdline("-a INTERFACE