From: Zbigniew Jędrzejewski-Szmek Date: Fri, 24 Jul 2026 21:05:06 +0000 (+0200) Subject: resolvectl: convert to VERB_COMMAND X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=df03655bc5dde87a8fa95fd08308ecb4b3d3eaae;p=thirdparty%2Fsystemd.git resolvectl: convert to VERB_COMMAND --- diff --git a/src/resolve/resolvconf-compat.c b/src/resolve/resolvconf-compat.c index d3ddec755a2..9b556469a78 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