Skip to content

Commit d813fb2

Browse files
author
DevForge Engineer
committed
test(cli): add comprehensive CLI integration tests and fix README docs
- Add 28 CLI tests covering convert, diff, check, mcp, version, and help across all 11 supported schema formats - Fix pricing table: All 9 format directions -> All 11 format directions - Fix --dir examples to use check --dir instead of non-existent convert --dir flag
1 parent 732625f commit d813fb2

2 files changed

Lines changed: 469 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ schemaforge convert --from sql --to prisma --input schema.sql --type-map my-type
4343
# Diff two schemas
4444
schemaforge diff schema-v1.prisma schema-v2.prisma
4545

46-
# Batch convert all schemas in a directory
47-
schemaforge convert --from sql --to prisma --dir ./schemas/
46+
# Check all schemas in a directory are consistent
47+
schemaforge check --dir ./schemas/
4848
```
4949

5050
## Installation
@@ -89,8 +89,8 @@ schemaforge convert --from graphql --to prisma --input schema.graphql
8989
# Custom type mapping
9090
schemaforge convert --from sql --to prisma --input schema.sql --type-map my-types.yaml
9191

92-
# Dir mode (batch convert all files)
93-
schemaforge convert --from sql --to prisma --dir ./schemas/
92+
# Dir mode (check all files are consistent)
93+
schemaforge check --dir ./schemas/ --canonical prisma
9494
```
9595

9696
### `schemaforge diff`
@@ -236,7 +236,7 @@ schemaforge convert --from sql --to prisma --input fixtures/sample.sql \
236236
--type-map fixtures/sample-type-overrides.yaml
237237
238238
# Batch convert all fixtures from SQL
239-
schemaforge convert --from sql --to prisma --dir fixtures/
239+
schemaforge check --dir fixtures/
240240
241241
# Diff two format outputs
242242
schemaforge diff fixtures/sample.sql fixtures/sample.prisma --format prisma

0 commit comments

Comments
 (0)