From 4af93d94dddf13e6f312e0ff87c6fb2be8e77d4f Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Tue, 16 Jun 2015 12:56:48 +0100 Subject: [PATCH] show command: adding supported platforms --- wlauto/commands/show.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wlauto/commands/show.py b/wlauto/commands/show.py index 57d0bda4..ee95e66e 100644 --- a/wlauto/commands/show.py +++ b/wlauto/commands/show.py @@ -63,6 +63,9 @@ def format_extension(extension, out, width): out.write('\n') format_extension_summary(extension, out, width) out.write('\n') + if hasattr(extension, 'supported_platforms'): + format_supported_platforms(extension, out, width) + out.write('\n') if extension.parameters: format_extension_parameters(extension, out, width) out.write('\n') @@ -77,6 +80,11 @@ def format_extension_summary(extension, out, width): out.write('{}\n'.format(format_body(strip_inlined_text(get_summary(extension)), width))) +def format_supported_platforms(extension, out, width): + text = 'supported on: {}'.format(', '.join(extension.supported_platforms)) + out.write('{}\n'.format(format_body(text, width))) + + def format_extension_description(extension, out, width): # skip the initial paragraph of multi-paragraph description, as already # listed above.