]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: Add --with-dependencies flag
authorKevin Kuehler <keur@xcf.berkeley.edu>
Sun, 8 Dec 2019 23:23:27 +0000 (15:23 -0800)
committerKevin Kuehler <kkuehler@brave.com>
Fri, 10 Jan 2020 06:52:04 +0000 (22:52 -0800)
commite9c387c8293c57d1c773fc80d23239350eb3b370
tree6aecde293202b3cf59eeffcda39fd4d714cb7fb6
parent411975ce63b28194b21b964268efaa04b19cbb37
systemctl: Add --with-dependencies flag

Will print a unit and all of its dependencies. Works with cat, status,
list-units, and list-unit-files. This flag can also be used in conjunction
with --reverse, --before, and --after.

We also vastly simplify the list_dependencies_get_dependencies logic.
Instead of using 5 strvs and merging them into one, use one strv and
have the bus append all the map values to it.

Fixes #9273
src/systemctl/systemctl.c