Skip to content

Commit 0deb793

Browse files
Add revenueholdings-license gating: require_license() on all CLI commands
1 parent da18435 commit 0deb793

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dependencies = [
1717
"rich>=13.0",
1818
"pyyaml>=6.0",
1919
"sqlparse>=0.5.0",
20+
"revenueholdings-license>=0.1.0",
2021
]
2122

2223
[project.optional-dependencies]

src/schemaforge/cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
import click
88

9+
from revenueholdings_license import require_license
10+
911
from .convert import convert_schema
1012
from .diff import diff_schemas
1113
from .type_config import TypeConfig
@@ -24,6 +26,7 @@ def main() -> None:
2426
Convert between SQL DDL, Prisma, Drizzle, TypeORM, Django, SQLAlchemy models,
2527
Alembic migrations, JSON Schema, and GraphQL SDL with zero-loss roundtripping.
2628
"""
29+
require_license("schemaforge")
2730

2831

2932
@main.command()

0 commit comments

Comments
 (0)