Skip to content
This repository has been archived by the owner on Mar 16, 2023. It is now read-only.

Try registering script parameters via provideDelagate #85

Open
JonasWanke opened this issue Jan 5, 2020 · 0 comments
Open

Try registering script parameters via provideDelagate #85

JonasWanke opened this issue Jan 5, 2020 · 0 comments
Labels
C: script Component: Script DSL T: refactor Type: :building_construction: Refactoring

Comments

@JonasWanke
Copy link
Owner

Description

Maybe we can use a syntax like the following without explicit register() calls for each parameter like before when our base class overwrites provideDelagate:

command("demo") {
    val a by argument("a")

    run {
        TODO()
    }
}
@JonasWanke JonasWanke added T: refactor Type: :building_construction: Refactoring C: script Component: Script DSL labels Jan 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C: script Component: Script DSL T: refactor Type: :building_construction: Refactoring
Projects
None yet
Development

No branches or pull requests

1 participant