refactor: project structure change

This commit is contained in:
zx
2024-09-01 16:18:40 -04:00
parent 2c74cdb0b3
commit 104964ac56
10 changed files with 107 additions and 37 deletions

25
src/cyan.py Normal file
View File

@@ -0,0 +1,25 @@
import os
from argparse import ArgumentParser
import tbhutils
def main(parser: ArgumentParser) -> None:
args = parser.parse_args()
args.i = os.path.normpath(args.input)
if args.output is not None:
args.o = os.path.normpath(args.output)
if not (args.o.endswith(".app") or args.o.endswith(".ipa")):
print("[?] output's file extension not specified; will create ipa")
args.o += ".ipa"
else:
args.o = args.i
arg_err = tbhutils.validate_inputs(args)
if arg_err is not None:
parser.error(arg_err)
# verbose notices
if args.o