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 split and split-re tags (#55) #93

Closed
wants to merge 1 commit into from

Conversation

igrishaev
Copy link

fixes #55

This PR adds two more reader tags: #split and #split-re. According to my experience, both tags are useful. Most of our projects carry code to extend built-int tags with these ones to accept comma-separated values from Env vars.

Usage:

{:hosts #split "app1.host.com,app2.host.com"}

{:hosts #split #env APP_HOSTS}

{:hosts #split-re ["\\t" "app1.host.com\tapp2.host.com"]}

@codecov-commenter
Copy link

Codecov Report

Merging #93 into master will increase coverage by 0.44%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #93      +/-   ##
==========================================
+ Coverage   79.13%   79.57%   +0.44%     
==========================================
  Files           4        4              
  Lines         369      377       +8     
  Branches       17       17              
==========================================
+ Hits          292      300       +8     
  Misses         60       60              
  Partials       17       17              
Impacted Files Coverage Δ
src/aero/core.cljc 75.30% <100.00%> (+0.82%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1ecae64...aa02a2a. Read the comment docs.

@igrishaev
Copy link
Author

Any thoughts on that? Do I close it?

@igrishaev igrishaev closed this Jun 29, 2020
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 this pull request may close these issues.

Reader literal to split a value
2 participants