1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2025-07-18 13:38:48 +02:00

fix: enforce python 3.10

This commit is contained in:
aclist 2023-11-23 13:55:15 +09:00
parent 98217f6bcb
commit 6beca3a6d0
2 changed files with 11 additions and 13 deletions
helpers

View file

@ -40,16 +40,12 @@ def get_rules(ip, qport):
except:
sys.exit(1)
def switch(case):
if case == "info":
get_info(ip, qport)
elif case == "rules":
get_rules(ip, qport)
else:
sys.exit(1)
ip = sys.argv[1]
qport = sys.argv[2]
mode = sys.argv[3]
switch(mode)
match mode:
case "info":
get_info(ip, qport)
case "rules":
get_rules(ip, qport)