Skip to content

targets --features; warn when a target ignores a feature - #76

Merged
Kinflou merged 2 commits into
mainfrom
feat/feature-support
Oct 18, 2026
Merged

Kinflou merged 2 commits into
mainfrom
feat/feature-support

Conversation

@Kinflou

@Kinflou Kinflou commented Oct 18, 2026

Copy link
Copy Markdown
Member

Part of the generator feature-support work (generation#62, comline-rust#57, comline-typescript#48).

  • comline targets --features: each compiled-in generator's support, feature by feature, with notes and tracking issues. --json (which requires --features) prints the same report as JSON, keyed by feature id.
  • comline generate: a warning per feature the schema uses that the target ignores, e.g. typescript ignores validators: the types are generated; the checks aren't run yet (core#96) - used by schema 'accounts', type alias 'Handle'. An unsupported feature needs nothing new here: the generator refuses it and names every use.

Tests: --features text output; the JSON shape; --json alone fails; the ignored-feature warning on the validated_project fixture with TypeScript declared. 100 pass locally.

Kinflou added 2 commits October 18, 2026 23:54
`comline targets --features` lists what each compiled-in generator
implements, feature by feature, and `--json` prints it as JSON
(`comline_codegen::features`). `comline generate` warns, per feature,
when a target generates without one the schema uses (TypeScript and
`@validators`). An unsupported feature needs no check here: the
generator refuses it and names every use.

Pins generation's feature-support work and both generators.
@Kinflou
Kinflou merged commit e28da85 into main Oct 18, 2026
2 checks passed
@Kinflou
Kinflou deleted the feat/feature-support branch October 18, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant