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

[Feature request] Add a wrapper for Properties #3313

Open
massimosiani opened this issue Dec 11, 2022 · 2 comments
Open

[Feature request] Add a wrapper for Properties #3313

massimosiani opened this issue Dec 11, 2022 · 2 comments
Milestone

Comments

@massimosiani
Copy link

massimosiani commented Dec 11, 2022

Hi! Thinking about adding a wrapper for system props, similar to what Env is for env vars.
I came up with

trait Prop[F[_]] {
  def get(name: String): F[Option[String]]
  def modify(name: String, f: String => (String, String)): F[Option[String]]
  def set(name: String, value: String): F[Unit]
  def update(name: String, f: String => String): F[Unit]
}

(don't really like the name).

I can provide a PR if it sounds useful.

@bpholt
Copy link
Member

bpholt commented Dec 7, 2023

I could have used this today. It seems like a helpful addition.

@armanbilge armanbilge added this to the v3.6.0 milestone Dec 7, 2023
@iRevive
Copy link
Contributor

iRevive commented Dec 25, 2023

Same. I have several use cases where Prop would be helpful.

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

No branches or pull requests

4 participants