Skip to content

Commit 8307bb7

Browse files
committed
Add cli skeleton
1 parent e4b55c1 commit 8307bb7

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

ygka/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
from .cli import cli_app
2+
3+
14
def main():
2-
print('Hello, World!')
5+
cli_app()

ygka/cli/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from .ygka import ygka_command as _ # noqa
2+
from .cli_app import cli_app as cli_app

ygka/cli/cli_app.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from typer import Typer
2+
3+
cli_app = Typer()

ygka/cli/ygka.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from rich import print as pprint
2+
3+
from .cli_app import cli_app
4+
5+
6+
@cli_app.command()
7+
def ygka_command():
8+
pprint('[bold]Hello World![/bold]')

0 commit comments

Comments
 (0)