1
0
Fork 0

Merge pull request #1123 from TheJJ/main-file

add main file to allow python3 -m pgcli execution
This commit is contained in:
Amjith Ramanujam 2020-01-07 06:55:36 -08:00 committed by GitHub
commit 2b55da8481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 1 deletions

View File

@ -1,6 +1,12 @@
Upcoming:
=========
Features:
---------
* Add `__main__.py` file to execute pgcli as a package directly (#1123).
* Add support for ANSI escape sequences for coloring the prompt (#1122).
Internal:
---------
@ -12,7 +18,6 @@ Internal:
Features:
---------
* Add support for ANSI escape sequences for coloring the prompt (#1123).
* Add `\\G` as a terminator to sql statements that will show the results in expanded mode. This feature is copied from mycli. (Thanks: `Amjith Ramanujam`_)
* Removed limit prompt and added automatic row limit on queries with no LIMIT clause (#1079) (Thanks: `Sebastian Janko`_)
* Function argument completions now take account of table aliases (#1048). (Thanks: `Owen Stephens`_)

9
pgcli/__main__.py Normal file
View File

@ -0,0 +1,9 @@
"""
pgcli package main entry point
"""
from .main import cli
if __name__ == "__main__":
cli()