diff --git a/soypak/cli/soypakcli.py b/soypak/cli/soypakcli.py new file mode 100644 index 0000000..f6bfd2c --- /dev/null +++ b/soypak/cli/soypakcli.py @@ -0,0 +1,24 @@ +import sys +import soypak.cli.parser as parser + + +# :@TODO: remove this and implement the following: +# - a class which will auto-add commands to the CLI which can be ran (eopkg autocommand). +# - this will inherit `type` and be inherited as a metaclass `class ...(metaclass=...)` + +class SoypakCLI: + def __init__(self) -> None: + _parser = parser.SoypakParser() + cmd, args = _parser.parse_args() + + if len(args) == 0: + if _parser.namespace.version: + print(_parser.VERSION) + sys.exit(0) + + print(cmd, args) + + + def run(self): + # :@TODO: run commands + ...