mirror of
https://github.com/snowykami/server-status-client.git
synced 2024-11-22 23:27:45 +08:00
✨ remove pdm.lock
This commit is contained in:
parent
eb6a57d5a7
commit
331297691a
2
.gitignore
vendored
2
.gitignore
vendored
@ -121,6 +121,8 @@ celerybeat.pid
|
|||||||
# SageMath parsed files
|
# SageMath parsed files
|
||||||
*.sage.py
|
*.sage.py
|
||||||
|
|
||||||
|
pdm.lock
|
||||||
|
|
||||||
# Environments
|
# Environments
|
||||||
.env
|
.env
|
||||||
.venv
|
.venv
|
||||||
|
3
main.py
3
main.py
@ -1,4 +1,7 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
from server_status.__main__ import main
|
from server_status.__main__ import main
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
print(sys.argv)
|
||||||
main()
|
main()
|
||||||
|
@ -6,6 +6,7 @@ from server_status.cmd_parser import server_status_alc
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
raw_msg = "server_status " + " ".join(sys.argv[1:])
|
raw_msg = "server_status " + " ".join(sys.argv[1:])
|
||||||
|
print(raw_msg)
|
||||||
arp = server_status_alc.parse(raw_msg)
|
arp = server_status_alc.parse(raw_msg)
|
||||||
|
|
||||||
if arp.query("run"):
|
if arp.query("run"):
|
||||||
|
Loading…
Reference in New Issue
Block a user