Skip to content

Commit 9f14c14

Browse files
committed
refactor: reorganize code structure
1 parent 9167854 commit 9f14c14

2 files changed

Lines changed: 13 additions & 9 deletions

File tree

src/app/cli.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import click
2+
from src.app.deploy import deploy
3+
4+
5+
@click.group(help='''
6+
CLI sub-command to help manage aitomatic apps
7+
''')
8+
def app():
9+
pass
10+
11+
app.add_command(deploy)

src/cli.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import click
2-
from src.app.deploy import deploy
2+
from src.app.cli import app
33

44

55
@click.group(help='''
@@ -8,14 +8,7 @@
88
def cli():
99
pass
1010

11-
12-
@cli.group(help='''
13-
CLI sub-command to help manage aitomatic apps
14-
''')
15-
def app():
16-
pass
17-
18-
app.add_command(deploy)
11+
cli.add_command(app)
1912

2013
if __name__ == '__main__':
2114
cli()

0 commit comments

Comments
 (0)