Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

Commit

Permalink
feat: minor improvements and prepare for publishing to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
julianolf committed Aug 20, 2020
1 parent 8757ea5 commit f38ca10
Show file tree
Hide file tree
Showing 6 changed files with 407 additions and 261 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ jobs:
- name: Install Poetry
run: pip install poetry
- name: Install dependencies
run: poetry install
run: poetry install --no-root
- name: Run tests
run: poetry run pytest -x -p no:warnings --cov=aurora_term/ --cov-report term-missing --cov-fail-under 100
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
__pycache__/
*.egg-info/
.coverage
dist/
.python-version
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
aurora-term
===========

Amazon Aurora Serverless interactive terminal.
AWS Aurora Serverless interactive terminal.

Introduction
------------
Expand Down
14 changes: 10 additions & 4 deletions aurora_term/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@

from aurora_term import __version__, config, terminal

args = docopt.docopt(__doc__, version=__version__)
prms = {k.lower().replace('--', ''): v for k, v in args.items() if v}
conf = config.Config(**prms)
terminal.Terminal(conf).cmdloop()

def main():
args = docopt.docopt(__doc__, version=__version__)
prms = {k.lower().replace('--', ''): v for k, v in args.items() if v}
conf = config.Config(**prms)
terminal.Terminal(conf).cmdloop()


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

0 comments on commit f38ca10

Please sign in to comment.