From 9eca168c5517aafcc0022131af1ea5cb68b04e48 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Tue, 6 Feb 2018 10:59:08 +0000 Subject: [PATCH] commands/show: Remove individual headings from output --- wa/commands/show.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/wa/commands/show.py b/wa/commands/show.py index 26083def..e0759ecd 100644 --- a/wa/commands/show.py +++ b/wa/commands/show.py @@ -87,17 +87,12 @@ def get_target_description(name): def get_rst_from_target(target): - text = underline(target.name, '-') + text = underline(target.name, '~') if hasattr(target, 'description'): desc = strip_inlined_text(target.description or '') text += desc - conn_params_rst = get_params_rst(target.conn_params) - if conn_params_rst: - text += underline('\nconnection parameters', '~') + conn_params_rst - platform_params_rst = get_params_rst(target.platform_params) - if platform_params_rst: - text += underline('\nplatform parameters', '~') + platform_params_rst - target_params_rst = get_params_rst(target.target_params) - if target_params_rst: - text += underline('\nconnection parameters', '~') + target_params_rst + text += underline('Device Parameters:', '-') + text += get_params_rst(target.conn_params) + text += get_params_rst(target.platform_params) + text += get_params_rst(target.target_params) return text + '\n'