Skip to content

Commit b9822e9

Browse files
CLI initializing
1 parent 407a416 commit b9822e9

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/thread/__main__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
# To make CLI accessible with py/python/python3 -m thread ...
3+
from .cli import app
4+
5+
if __name__ == '__main__':
6+
app(prog_name = 'thread')

src/thread/cli/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
"""
2+
Import and config CLI commands
3+
"""
4+
5+
__version__ = '0.1.2'
6+
from ..config import logging, ColorLogger
7+
logging.setLoggerClass(ColorLogger)
8+
9+
10+
# Import #
11+
from .base import cli_base as app

0 commit comments

Comments
 (0)