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

support variables in values #6

Merged
merged 3 commits into from
Aug 22, 2018
Merged

support variables in values #6

merged 3 commits into from
Aug 22, 2018

Conversation

icyleaf
Copy link
Owner

@icyleaf icyleaf commented Aug 21, 2018

STR=foo
INT =42
SINGLE_VARIABLE=$STR
MULTIPLE_VARIABLE1=$STR$INT
MULTIPLE_VARIABLE2=$STR$INT1
MULTIPLE_VARIABLE3=$STR $INT
SINGLE_BLOCK_VARIABLE=${STR}${INT}
SINGLE_QUOTES_VARIABLE='hello $STR!'
DOUBLE_QUOTES_VARIABLE="hello ${STR}, my email is ${USERNAME}"

becomes

  {
   "STR" => "foo",
   "INT" => "42",
   "SINGLE_VARIABLE" => "foo",
   "MULTIPLE_VARIABLE1" => "foo42",
   "MULTIPLE_VARIABLE2" => "foo$INT1",
   "MULTIPLE_VARIABLE3" => "foo 42",
   "SINGLE_BLOCK_VARIABLE" => "foo42",
   "SINGLE_QUOTES_VARIABLE" => "hello $STR!",
   "DOUBLE_QUOTES_VARIABLE" => "hello foo, my email is ${USERNAME}"
}

@icyleaf icyleaf merged commit 4ad1321 into master Aug 22, 2018
@icyleaf icyleaf deleted the feat/variables-in-value branch August 22, 2018 10:19
@icyleaf icyleaf mentioned this pull request Aug 22, 2018
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.

1 participant