Skip to content

Commit

Permalink
feat: add version flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sesh committed Feb 24, 2024
1 parent 4dd9f87 commit 36bf6dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ready/ready.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from importlib import resources
from . import checks as checks_module

VERSION = "1.2.3"

from ready.checks.bad_response import (
check_bad_response_cloudflare,
Expand Down Expand Up @@ -402,6 +403,10 @@ def usage():
def cli():
args = parse_args(sys.argv[1:])

if "--version" in args:
print(f"ready {VERSION}")
sys.exit()

if "--doc" in args:
for f in resources.files(checks_module).iterdir():
if f.name.endswith(".py"):
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = ready-check
version = 1.2.2
version = 1.2.3
author = Brenton Cleeland
author_email = [email protected]
description = A developer-friendly web scanning tool
Expand Down

0 comments on commit 36bf6dd

Please sign in to comment.