restructure for docker

This commit is contained in:
Ville Rantanen
2023-07-24 20:02:49 +03:00
parent 58abf04d2c
commit a0c0d69c5e
8 changed files with 213 additions and 146 deletions

View File

@@ -23,6 +23,9 @@ cmd = arg(1, f"usage: {proc} <command> [...]")
if cmd == "password":
pwd = arg_last(2, "usage: {proc} password <pwd>")
print(password.hash(pwd))
elif cmd == "version":
from version import VERSION
print(VERSION)
else:
print("unknown command ", cmd)
sys.exit(1)