Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a config with good DX #11

Closed
KacperFKorban opened this issue Mar 3, 2024 · 0 comments · Fixed by #46
Closed

Add a config with good DX #11

KacperFKorban opened this issue Mar 3, 2024 · 0 comments · Fixed by #46

Comments

@KacperFKorban
Copy link
Owner

KacperFKorban commented Mar 3, 2024

It should be possible to pass config options to GUInep. Those can either be front end specific or general GUInep options. e.g.

  • flag that makes all non-nullable inputs as required
  • an option to choose an alternative styling scheme

Some ideas for config:

  • a given instance e.g.
    given GUInepConfig with
      override val useBananas: Boolean = true
    
    guinep.web(someTool)
  • additional parameter list
    guinep.web(someTool)(useBananas = true)
  • builder-ish (change web to be some guinep class instance with an apply method)
    guinep.web
      .withConfig(_.copy(useBananas = true))
      .apply(someTool)
This was referenced Apr 10, 2024
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 a pull request may close this issue.

1 participant