Skip to content

Commit e481604

Browse files
committed
feat(codegen): update docs generators with INPUT_OBJECT dot-notation, TypeRegistry threading, and --no-tty docs
1 parent 6664ce5 commit e481604

69 files changed

Lines changed: 769 additions & 306 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

graphql/codegen/src/__tests__/codegen/__snapshots__/cli-generator.test.ts.snap

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ Authenticate a user
337337

338338
| Argument | Type |
339339
|----------|------|
340-
| \`email\` | String (required) |
341-
| \`password\` | String (required) |
340+
| \`--email\` | String (required) |
341+
| \`--password\` | String (required) |
342342

343343
## Output
344344

@@ -349,6 +349,14 @@ myapp car list | jq '.[]'
349349
myapp car get --id <uuid> | jq '.'
350350
\`\`\`
351351

352+
## Non-Interactive Mode
353+
354+
Use \`--no-tty\` to skip all interactive prompts (useful for scripts and CI):
355+
356+
\`\`\`bash
357+
myapp --no-tty car create --name "Sedan" --year 2024
358+
\`\`\`
359+
352360
---
353361

354362
Built by the [Constructive](https://constructive.io) team.
@@ -576,6 +584,9 @@ myapp auth set-token <token>
576584
myapp car list
577585
myapp car get --id <value>
578586
myapp car create --<field> <value>
587+
588+
# Non-interactive mode (skip all prompts, use flags only)
589+
myapp --no-tty car list
579590
\`\`\`
580591

581592
## Examples
@@ -589,6 +600,12 @@ myapp auth set-token <token>
589600
myapp car list
590601
\`\`\`
591602

603+
### Non-interactive mode (for scripts and CI)
604+
605+
\`\`\`bash
606+
myapp --no-tty car create --<field> <value>
607+
\`\`\`
608+
592609
## References
593610

594611
See the \`references/\` directory for detailed per-entity API documentation:
@@ -2913,8 +2930,8 @@ Authenticate a user
29132930

29142931
| Argument | Type |
29152932
|----------|------|
2916-
| \`email\` | String (required) |
2917-
| \`password\` | String (required) |
2933+
| \`--email\` | String (required) |
2934+
| \`--password\` | String (required) |
29182935
- **Flags:** \`--save-token\` auto-saves returned token to credentials
29192936

29202937
## members Commands
@@ -2976,6 +2993,14 @@ myapp auth:user list | jq '.[]'
29762993
myapp auth:user get --id <uuid> | jq '.'
29772994
\`\`\`
29782995

2996+
## Non-Interactive Mode
2997+
2998+
Use \`--no-tty\` to skip all interactive prompts (useful for scripts and CI):
2999+
3000+
\`\`\`bash
3001+
myapp --no-tty auth:user create --name "Example"
3002+
\`\`\`
3003+
29793004
---
29803005

29813006
Built by the [Constructive](https://constructive.io) team.
@@ -3198,6 +3223,9 @@ CLI commands for the auth API target — 1 tables and 2 custom operations via my
31983223
myapp auth:user list
31993224
myapp auth:user get --id <value>
32003225
myapp auth:user create --<field> <value>
3226+
3227+
# Non-interactive mode (skip all prompts, use flags only)
3228+
myapp --no-tty auth:user list
32013229
\`\`\`
32023230

32033231
## Examples
@@ -3208,6 +3236,12 @@ myapp auth:user create --<field> <value>
32083236
myapp auth:user list
32093237
\`\`\`
32103238

3239+
### Non-interactive mode (for scripts and CI)
3240+
3241+
\`\`\`bash
3242+
myapp --no-tty auth:user create --<field> <value>
3243+
\`\`\`
3244+
32113245
## References
32123246

32133247
See the \`references/\` directory for detailed per-entity API documentation:
@@ -3270,6 +3304,9 @@ CLI commands for the members API target — 1 tables and 0 custom operations via
32703304
myapp members:member list
32713305
myapp members:member get --id <value>
32723306
myapp members:member create --<field> <value>
3307+
3308+
# Non-interactive mode (skip all prompts, use flags only)
3309+
myapp --no-tty members:member list
32733310
\`\`\`
32743311

32753312
## Examples
@@ -3280,6 +3317,12 @@ myapp members:member create --<field> <value>
32803317
myapp members:member list
32813318
\`\`\`
32823319

3320+
### Non-interactive mode (for scripts and CI)
3321+
3322+
\`\`\`bash
3323+
myapp --no-tty members:member create --<field> <value>
3324+
\`\`\`
3325+
32833326
## References
32843327

32853328
See the \`references/\` directory for detailed per-entity API documentation:
@@ -3340,6 +3383,9 @@ CLI commands for the app API target — 1 tables and 0 custom operations via mya
33403383
myapp app:car list
33413384
myapp app:car get --id <value>
33423385
myapp app:car create --<field> <value>
3386+
3387+
# Non-interactive mode (skip all prompts, use flags only)
3388+
myapp --no-tty app:car list
33433389
\`\`\`
33443390

33453391
## Examples
@@ -3350,6 +3396,12 @@ myapp app:car create --<field> <value>
33503396
myapp app:car list
33513397
\`\`\`
33523398

3399+
### Non-interactive mode (for scripts and CI)
3400+
3401+
\`\`\`bash
3402+
myapp --no-tty app:car create --<field> <value>
3403+
\`\`\`
3404+
33533405
## References
33543406

33553407
See the \`references/\` directory for detailed per-entity API documentation:

0 commit comments

Comments
 (0)