From 34e1d12bcaa0df39b8c68289e6d1d093e5db8f94 Mon Sep 17 00:00:00 2001 From: Alex Tavarez Date: Thu, 25 Dec 2025 09:45:31 -0500 Subject: [PATCH] started a class for configuration of the CLI and CLI click-decorated functions --- main.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..6e6477d --- /dev/null +++ b/main.py @@ -0,0 +1,28 @@ +import click +from pathlib import Path, PurePath, PurePosixPath, PureWindowsPath, PosixPath, WindowsPath +from typing import TypeAlias as Neotype +from typing import Union +# import configparser as ini +# from cerberus import Validator as constrain_by +# import skansible_types as skato + +ExecutedPath: Neotype = Union[PosixPath, WindowsPath] +IdlePath: Neotype = Union[PurePosixPath, PureWindowsPath] + +# @NOTE https://docs.python.org/3/library/configparser.html#quick-start +class Config: + path: IdlePath = PurePath(str(Path(__file__).parent.resolve())) / "config.ini" + +@click.group() +def skansible(): + raise NotImplementedError + +@click.command() +def init(): + if Path(str(Config.path)).exists(): + click.echo("") + else: + pass + +if __name__ == "__main__": + skansible()