Skip to content

Commit

Permalink
incr version
Browse files Browse the repository at this point in the history
  • Loading branch information
shadawck committed Aug 20, 2022
1 parent 91b1dca commit 4488964
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 19,097 deletions.
14 changes: 10 additions & 4 deletions mitrecve/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def main():
"""
Implement CLI logic
"""
arguments = docopt(__doc__, version='mitrecve 1.1.0')
arguments = docopt(__doc__, version='mitrecve 1.1.1')

############## CLI VAR ################
__crawl = arguments["crawl"]
Expand Down Expand Up @@ -61,9 +61,15 @@ def main():
####### SHOW COMMAND #########
elif __show:
__result = arguments["<result>"] + ".json"
files = os.listdir("./output/")
if __result in files:
subprocess.run(["jq", ".","output/"+__result])
if os.path.exists("./output/"):
files = os.listdir("./output/")

if __result in files:
subprocess.run(["jq", ".","output/"+__result])
print("print")
else :
print("Crawl first then look at the result !!!")
print("Try : \n\tmitrecve crawl", __result, "-f json" )
else :
print("Crawl first then look at the result !!!")
print("Try : \n\tmitrecve crawl", __result, "-f json" )
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# This call to setup() does all the work
setup(
name="mitrecve",
version="1.1.0",
version="1.1.1",
description="Get all CVE corresponding to a specific keyword or list of keywords from the MITRE database.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
Loading

0 comments on commit 4488964

Please sign in to comment.