crispy: compat

This commit is contained in:
yigid balaban 2024-06-18 11:42:50 +03:00
parent 4dd5de2027
commit a8c6a4ef49
Signed by: fyb
GPG Key ID: E21FEB2C244CB7EB

View File

@ -30,7 +30,6 @@ import os
import shutil import shutil
import tomllib import tomllib
import sys import sys
from datetime import datetime as dt
from git.repo import Repo from git.repo import Repo
from crispy.crispy import Crispy from crispy.crispy import Crispy
@ -208,8 +207,8 @@ def main():
c.add_variable('deploy', bool) c.add_variable('deploy', bool)
c.add_variable('tag', str) c.add_variable('tag', str)
args = c.parse_arguments(sys.argv[1:]) args = c.parse_arguments(sys.argv[1:])[1]
if args['backup'] and args['deploy']: if args['backup'] and args['deploy']:
util_errout('[ERR] can\'t do both, sorry :(', 11) util_errout('[ERR] can\'t do both, sorry :(', 11)
elif args['backup']: elif args['backup']:
@ -238,4 +237,5 @@ if __name__ == '__main__':
# 2. create a new commit and push # 2. create a new commit and push
# 3. if tag is specified, check if tag exists # 3. if tag is specified, check if tag exists
# 1. if tag does not exist, create tag and push # 1. if tag does not exist, create tag and push
# 2. if tag exists, warn and exit # 2. if tag exists, warn and exit