From ded6ec98bc8ab3f50c2194e0ba841628c2c2b2f6 Mon Sep 17 00:00:00 2001 From: Daniel Schwarz Date: Tue, 18 Jun 2024 17:18:36 -0400 Subject: [PATCH] Added toot version number to diag output --- toot/output.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/toot/output.py b/toot/output.py index 74fc70c..6c352c1 100644 --- a/toot/output.py +++ b/toot/output.py @@ -323,6 +323,9 @@ def print_diags(): now = datetime.now(timezone.utc) click.echo(f'{green("Current Date/Time:")} {now.strftime("%Y-%m-%d %H:%M:%S %Z")}') + from toot import __version__, config, settings + click.echo(f'{green(f"Toot version:")} {__version__}') + import platform click.echo(f'{green(f"Platform:")} {platform.platform()}')