dbcli / mssql-cli

A command-line client for SQL Server with auto-completion and syntax highlighting
BSD 3-Clause "New" or "Revised" License
1.35k stars 191 forks source link

Rolled back to scripts from entry_points in setup.py #299

Closed geleems closed 5 years ago

geleems commented 5 years ago

Rolled back to scripts from entry_points in setup.py. entry_points config makes start process trigger mssqlcli.main directly, and we lose a chance to set PYTHONIOENCODING information.

entry_points = {
    "console_scripts": [
        "mssql-cli.bat = mssqlcli.main:main",
        "mssql-cli = mssqlcli.main:main"
    ]
},

For launching mssql-cli mssql-cli script, it is more appropriate to follow the way of launching azure-cli in az script.

python -m azure.cli "$@"