Skip to content

Commit

Permalink
Merge pull request #4 from aitomatic/fix/change_aitomatic_to_aito
Browse files Browse the repository at this point in the history
Fix/change aitomatic to aito
  • Loading branch information
phamhoangtuan committed Mar 28, 2022
2 parents 6d4c57c + 9f14c14 commit 61bb754
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ celerybeat.pid

# Environments
.env
.venv
.venv**
env/
venv/
ENV/
Expand Down
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ black -S .
```
2. Run command to test script
```shell
python src/aitomatic.py
python src/cli.py
```

## Steps to install the CLI to virtual environment and test it
Expand All @@ -47,11 +47,11 @@ pip install -e .
```
2. Verify the CLI
```shell
which aitomatic
which aito
```
3. Run `aitomatic` command
3. Run `aito` command
```shell
aitomatic
aito
```

## Steps to package and distribute CLI to TestPyPI
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ python_requires = >=3.7

[options.entry_points]
console_scripts =
aitomatic = src.aitomatic:aitomatic_cli
aito = src.cli:cli
21 changes: 0 additions & 21 deletions src/aitomatic.py

This file was deleted.

11 changes: 11 additions & 0 deletions src/app/cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import click
from src.app.deploy import deploy


@click.group(help='''
CLI sub-command to help manage aitomatic apps
''')
def app():
pass

app.add_command(deploy)
14 changes: 14 additions & 0 deletions src/cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import click
from src.app.cli import app


@click.group(help='''
Aitomatic CLI tool to help manage aitomatic projects and apps
''')
def cli():
pass

cli.add_command(app)

if __name__ == '__main__':
cli()
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.1
0.2.0

0 comments on commit 61bb754

Please sign in to comment.