Skip to content

Commit 61bb754

Browse files
Merge pull request #4 from aitomatic/fix/change_aitomatic_to_aito
Fix/change aitomatic to aito
2 parents 6d4c57c + 9f14c14 commit 61bb754

7 files changed

Lines changed: 32 additions & 28 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ celerybeat.pid
103103

104104
# Environments
105105
.env
106-
.venv
106+
.venv**
107107
env/
108108
venv/
109109
ENV/

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ black -S .
3636
```
3737
2. Run command to test script
3838
```shell
39-
python src/aitomatic.py
39+
python src/cli.py
4040
```
4141

4242
## Steps to install the CLI to virtual environment and test it
@@ -47,11 +47,11 @@ pip install -e .
4747
```
4848
2. Verify the CLI
4949
```shell
50-
which aitomatic
50+
which aito
5151
```
52-
3. Run `aitomatic` command
52+
3. Run `aito` command
5353
```shell
54-
aitomatic
54+
aito
5555
```
5656

5757
## Steps to package and distribute CLI to TestPyPI

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ python_requires = >=3.7
2424

2525
[options.entry_points]
2626
console_scripts =
27-
aitomatic = src.aitomatic:aitomatic_cli
27+
aito = src.cli:cli

src/aitomatic.py

Lines changed: 0 additions & 21 deletions
This file was deleted.

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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import click
2+
from src.app.cli import app
3+
4+
5+
@click.group(help='''
6+
Aitomatic CLI tool to help manage aitomatic projects and apps
7+
''')
8+
def cli():
9+
pass
10+
11+
cli.add_command(app)
12+
13+
if __name__ == '__main__':
14+
cli()

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.1
1+
0.2.0

0 commit comments

Comments
 (0)