Skip to content

Implement Parameter Context for Generators #8

Description

@darmiel

Which let's us pass more options to generators, ex.:

public interface Wiz {
    @Generate
    int[] generateArray(final int size);
}

@Entrypoint
public void run(
    @Prompt("Size?") @Range({0, 100}) final int size,
    @Factory final Wiz wiz
) {
    final int[] arr = wiz.generateArray(size);
    System.out.println(Arrays.toString(arr));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions