-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic.sh
More file actions
45 lines (37 loc) · 1.04 KB
/
basic.sh
File metadata and controls
45 lines (37 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
# Basic CLI usage examples for code2schema
# 1. Basic analysis - generates schema.json in project directory
code2schema /home/tom/github/maskservice/c2004/backend
# Output: /home/tom/github/maskservice/c2004/c2004_schema.json
# 2. Generate all formats
code2schema ./backend --proto --md --html
# Output:
# - backend_schema.json
# - backend_api.proto
# - backend_report.md
# - backend_viz.html
# 3. Full analysis with diagnostics
code2schema ./backend \
--proto \
--md \
--html \
--graph-summary \
--events \
--cycles
# 4. Custom output names
code2schema ./backend \
--proto api.proto \
--md report.md \
--html viz.html
# 5. Exclude directories (e.g., tests, migrations)
code2schema ./backend \
--proto --md \
--exclude "tests/**" "migrations/**" "venv/**"
# 6. Quiet mode (no console output)
code2schema ./backend --proto --md -q
# 7. Disable quality rules
code2schema ./backend --md --no-rules
# 8. Graph export formats
code2schema ./backend \
--graphml graph.graphml \
--dot graph.dot