mirror of https://github.com/dbcli/pgcli
Add entry point
I'm a distro packager and the generated /usr/bin/pgcli doesn't work for me and I need more control. I need my own entry point so I can execute the module using python -m pgcli.main.
This commit is contained in:
parent
04b656bad6
commit
996c29277e
|
@ -178,3 +178,6 @@ def refresh_completions(pgexecute, completer):
|
|||
for table in tables:
|
||||
completer.extend_column_names(table, pgexecute.columns(table))
|
||||
completer.extend_database_names(pgexecute.databases())
|
||||
|
||||
if __name__ == "__main__":
|
||||
cli()
|
||||
|
|
Loading…
Reference in New Issue