We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cf92b0 commit a53283fCopy full SHA for a53283f
pyproject.toml
@@ -109,7 +109,7 @@ test = [
109
]
110
111
[project.scripts]
112
-sqlspec = "sqlspec.cli:run_cli"
+sqlspec = "sqlspec.__main__:run_cli"
113
114
[build-system]
115
build-backend = "hatchling.build"
sqlspec/__main__.py
@@ -0,0 +1,12 @@
1
+from sqlspec.cli import add_migration_commands as build_cli_interface
2
+
3
+__all__ = ("run_cli", )
4
5
6
+def run_cli() -> None: # pragma: no cover
7
+ """SQLSpec CLI"""
8
+ build_cli_interface()()
9
10
11
+if __name__ == "__main__": # pragma: no cover
12
+ run_cli()
0 commit comments