--dry-run switch output includes associated url tags (#158)

This commit is contained in:
Chris Caron 2019-10-02 22:04:41 -04:00 committed by GitHub
parent f0b19320c6
commit 44a21651b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,6 +217,8 @@ def main(body, title, config, urls, notification_type, theme, tag, dry_run,
click.echo("{: 3d}. {}".format(
idx + 1,
url if len(url) <= rows else '{}...'.format(url[:rows - 3])))
if server.tags:
click.echo("{} - {}".format(' ' * 5, ', '.join(server.tags)))
# Initialize a default response of nothing matched, otherwise
# if we matched at least one entry, we can return True