update cli scripts to use REST API

This commit is contained in:
Thomas Peetz
2026-05-21 16:51:38 +02:00
committed by Thomas Peetz
parent d862476097
commit f9d09d5357
3 changed files with 105 additions and 110 deletions
+3
View File
@@ -51,6 +51,7 @@ MAPPING: Dict[str, str] = {
class OptionType(Enum):
PARAM = auto()
ID = auto()
URL = auto()
class Option:
@@ -174,6 +175,8 @@ def get_logger(level, config: str):
match level:
case 0:
logger.setLevel(logging.CRITICAL)
logging.getLogger("requests").setLevel(logging.WARNING)
logging.getLogger("urllib3").setLevel(logging.WARNING)
case 1:
logging.getLogger("requests").setLevel(logging.WARNING)
logging.getLogger("urllib3").setLevel(logging.WARNING)