sincecutoff.com
← all changes

Dagger CLI runs generate functions and applies their changesets

Introduced 2026-02-05 · score 0.98

HOW TO USE IT

When repository code generation is implemented as Dagger generator functions, mark each function with the SDK’s generate annotation and have it return a Changeset. Run `dagger generate` from the workspace to run generators and review and apply their combined changeset.

dagger generate

WHY THIS HELPS

Run repository code generation implemented as Dagger module functions and apply the resulting changesets.

REQUIREMENTS AND LIMITATIONS

  • Version: v0.19.11
  • Go annotation: `// +generate` (required): Marks a Go function as a generator; it must return a Changeset.
  • TypeScript decorator: `@generate()` (required): Marks a TypeScript function as a generator; it must return a Changeset.
  • Python decorator: `@generate` (required): Marks a Python function as a generator; it must return a `dagger.Changeset`.
  • Marked functions must expose a Changeset.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card