Skip to content

Commit

Permalink
Redirect cli_updater pip stdout to devnull
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-lindsay-tfs committed Oct 9, 2024
1 parent af4f942 commit 14c1683
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "qualysdk"
version = "0.1.55"
version = "0.1.56"
description = "SDK for interacting with Qualys APIs, across most modules the platform offers."
authors = ["0x41424142 <jake@jakelindsay.uk>", "0x4A616B65 <jake.lindsay@thermofisher.com>"]
maintainers = ["Jake Lindsay <jake@jakelindsay.uk>"]
Expand Down
4 changes: 3 additions & 1 deletion qualysdk/cli_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from argparse import ArgumentParser
from subprocess import run, check_call
from sys import executable
from os import devnull

from requests import Response, get
from packaging import version
Expand Down Expand Up @@ -200,7 +201,8 @@ def main() -> int:
"install",
"--upgrade",
"qualysdk",
]
],
stdout=open(devnull, "w"),
)
print(
f"✅ {GREEN}Qualysdk has been updated to v{latest_version}{RESET}"
Expand Down

0 comments on commit 14c1683

Please sign in to comment.