From f7b8eb7307334317ec354faf439d2475d518d389 Mon Sep 17 00:00:00 2001 From: Jonatan Schlag Date: Mon, 19 Jun 2017 21:20:48 +0200 Subject: [PATCH] cli: print the description title Signed-off-by: Jonatan Schlag Signed-off-by: Michael Tremer --- src/functions/functions.cli | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/functions/functions.cli b/src/functions/functions.cli index 5efd923d..1bd99dd1 100644 --- a/src/functions/functions.cli +++ b/src/functions/functions.cli @@ -113,6 +113,17 @@ cli_device_headline() { esac cli_print_fmt1 1 "Status" "${status}" + # Print the description title of the device. + case "${type}" in + port) + cli_print_fmt1 1 "Description" "$(port_get_description_title ${device})" + ;; + + zone) + cli_print_fmt1 1 "Description" "$(zone_get_description_title ${device})" + ;; + esac + # Print the color of the device. case "${type}" in port) -- 2.47.3