util: add generalization of verb parsing for command line tools

System Internals / systemd - Lennart Poettering [poettering.net] - 18 December 2014 19:07 EST

We should move loginctl, timedatectl, machinectl over to use this new API instead of a manual one.

dca59f6 util: add generalization of verb parsing for command line tools
Makefile.am | 4 ++-
src/shared/verbs.c | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++
src/shared/verbs.h | 34 +++++++++++++++++++++++
3 files changed, 114 insertions(+), 1 deletion(-)

Upstream: github.com


  • Share