Everything is split into modules and put into classes where inheritance is needed

This commit is contained in:
2025-06-05 18:37:02 -04:00
parent af2fe80ce5
commit 32f60194d0
4 changed files with 66 additions and 53 deletions

10
src/cli.py Normal file
View File

@ -0,0 +1,10 @@
import argparse
def interface():
parser = argparse.ArgumentParser()
parser.add_argument("--server", required=True, help="")
parser.add_argument("--cpu-temp-critical", type=int, default=80, help="cpu tempature crtitical. default = 80")
parser.add_argument("--cpu-temp-warning", type=int, default=70, help="cpu tempature warning. default = 70")
parser.add_argument("--update-rate", type=int, default=1, help="how often updates happen in seconds. default = 1")
return parser.parse_args()