Skip to content

Commit

Permalink
✨ CLI skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
perdy committed Jan 19, 2023
1 parent b8b0cdf commit 5bee225
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 167 deletions.
Empty file added cli/__init__.py
Empty file.
46 changes: 46 additions & 0 deletions cli/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import click


@click.group()
def cli():
"""
Flama 🔥.
"""
...


@click.command()
def run():
"""
Run an API.
"""
...


cli.add_command(run)


@click.command()
def dev():
"""
Run an API in development mode.
"""
...


cli.add_command(dev)


@click.command()
def serve():
"""
Run an API for a ML Model.
"""
...


cli.add_command(serve)


if __name__ == "__main__":
cli()
Loading

0 comments on commit 5bee225

Please sign in to comment.