From 34ffcb4c50f2154535f71a8d2c9e4b233f3635ea Mon Sep 17 00:00:00 2001 From: Brenton Cleeland Date: Wed, 28 Feb 2024 06:54:46 +1100 Subject: [PATCH] feat: include version in JSON output --- ready/ready.py | 6 ++++-- setup.cfg | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ready/ready.py b/ready/ready.py index 4d20c6f..ad53695 100644 --- a/ready/ready.py +++ b/ready/ready.py @@ -7,7 +7,7 @@ from importlib import resources from . import checks as checks_module -VERSION = "1.2.4" +VERSION = "1.2.5" from ready.checks.bad_response import ( check_bad_response_cloudflare, @@ -152,7 +152,8 @@ def ready( else: fld = "Disabled. Install tld if fld is different to domain." - print(f"Domain: {domain}, Domain (no path): {domain_with_no_path}, First Level Domain: {fld}") + if not hide_output: + print(f"Domain: {domain}, Domain (no path): {domain_with_no_path}, First Level Domain: {fld}") responses = { "http_response": response_or_none( @@ -357,6 +358,7 @@ def ready( for r in results }, "when": datetime.datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ"), + "version": VERSION }, indent=2, ) diff --git a/setup.cfg b/setup.cfg index 5dc2e98..6949568 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = ready-check -version = 1.2.4 +version = 1.2.5 author = Brenton Cleeland author_email = brenton@brntn.me description = A developer-friendly web scanning tool