]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Rename verb functions for consistency and add per-verb constant parameter (#41003)
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Wed, 18 Mar 2026 15:46:13 +0000 (16:46 +0100)
committerGitHub <noreply@github.com>
Wed, 18 Mar 2026 15:46:13 +0000 (16:46 +0100)
We often have a pattern where the same verb function is used for
multiple actions. This leads to an antipattern where we figure out what
action needs to be taken from argv[0] multiple times: often once in
arse_argv() to figure out what options are allowed, then once again
implicitly in dispatch_verb(), and then again in the action verb itself.
Let's allow passing a parameter into the verb to simplify this.


Trivial merge