Skip to content

Commit

Permalink
Merge pull request #22 from MohammadrezaAmani/inui-1.0.0.1-query
Browse files Browse the repository at this point in the history
fit(CLI): add cli tools to code.
  • Loading branch information
MohammadrezaAmani authored Nov 23, 2024
2 parents 87a07a5 + fd05ab5 commit cbda6cc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions inui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s"
)

__version__ = "1.0.0.4 - 23-Dec-2024"


def build(module, variable, out: str | None, _print: bool = True):
lib = importlib.import_module(module)
Expand Down
4 changes: 4 additions & 0 deletions inui/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from inui import build
from inui.toinui import convert
import logging
from inui import __version__

logging.basicConfig(
level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s"
Expand Down Expand Up @@ -77,6 +78,7 @@
},
],
},
"version": {"alias": ["v"], "help": "Version of INUI.", "args": []},
}


Expand Down Expand Up @@ -140,6 +142,8 @@ def main():
save_to=args.out,
indent=args.indent,
)
if args.command == "version":
print(__version__)


if __name__ == "__main__":
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "inui"
version = "1.0.0.3"
version = "1.0.0.4"
description = "Powerful and Highly Customizable Python Library for UI"
readme = "README.md"
authors = [{ name = "Mohammadreza Amani", email = "[email protected]" }]
Expand Down Expand Up @@ -39,4 +39,4 @@ Homepage = "https://github.com/MohammadrezaAmani/"
py-modules = ['inui']

[project.scripts]
inui = "inui:main"
inui = "inui.__main__:main"

0 comments on commit cbda6cc

Please sign in to comment.