summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2013-01-17 21:34:11 +0100
committerKay Sievers <kay@vrfy.org>2013-01-17 21:34:11 +0100
commit55c0b89c575fcb2c075286d444ed4fb1cf8c8563 (patch)
treeb853f027b41ef5088bbac997c505d36d228aa38e /src/shared
parent86ed7ec58b9b6a0907bbb3b8d07c930e52915de0 (diff)
systemctl add command list-dependencies
systemctl list-dependencies lists all unit's dependecies and recursively expands all subsidiary target units into a tree. Primary purpose for this command is to show all units which are enabled in specified target.
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/util.c2
-rw-r--r--src/shared/util.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/util.c b/src/shared/util.c
index 8e1409671f..d5de59fce9 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -5648,12 +5648,14 @@ const char *draw_special_char(DrawSpecialChar ch) {
[DRAW_TREE_VERT] = "\342\224\202 ", /* │ */
[DRAW_TREE_BRANCH] = "\342\224\234\342\224\200", /* ├─ */
[DRAW_TREE_RIGHT] = "\342\224\224\342\224\200", /* └─ */
+ [DRAW_TREE_SPACE] = " ", /* */
[DRAW_TRIANGULAR_BULLET] = "\342\200\243 ", /* ‣ */
},
/* ASCII fallback */ {
[DRAW_TREE_VERT] = "| ",
[DRAW_TREE_BRANCH] = "|-",
[DRAW_TREE_RIGHT] = "`-",
+ [DRAW_TREE_SPACE] = " ",
[DRAW_TRIANGULAR_BULLET] = "> ",
}
};
diff --git a/src/shared/util.h b/src/shared/util.h
index bbf744e900..cdaff45772 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -555,6 +555,7 @@ typedef enum DrawSpecialChar {
DRAW_TREE_VERT,
DRAW_TREE_BRANCH,
DRAW_TREE_RIGHT,
+ DRAW_TREE_SPACE,
DRAW_TRIANGULAR_BULLET,
_DRAW_SPECIAL_CHAR_MAX
} DrawSpecialChar;