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 default value #22

Open
sheb-gregor opened this issue Feb 13, 2022 · 0 comments
Open

Add default value #22

sheb-gregor opened this issue Feb 13, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@sheb-gregor
Copy link
Member

sheb-gregor commented Feb 13, 2022

Add new type noble.Value with support of default values.

New syntax will use || as a separator.

Here is an example:

db: "env:MY_APP_DB||test_database"
db =  "env:MY_APP_DB||test_database"

Expected behavior:

Try to retrieve the value by key from the environment (or another supported driver). If the retrieved value is empty, use the default value.

@sheb-gregor sheb-gregor self-assigned this Feb 13, 2022
@sheb-gregor sheb-gregor added the enhancement New feature or request label Feb 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant