1
0
Fork 0

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:
Sven-Hendrik Haase 2015-01-06 20:49:29 +01:00
parent 04b656bad6
commit 996c29277e
1 changed files with 3 additions and 0 deletions

View File

@ -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()