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

argument using a just variable not showing #972

Closed
tomikais opened this issue Sep 17, 2021 · 2 comments
Closed

argument using a just variable not showing #972

tomikais opened this issue Sep 17, 2021 · 2 comments

Comments

@tomikais
Copy link

Hi @casey,

first of all I wanna thank you for all your work and this awesome tool. I have an issue and don't know if it's a bug or my fault^^

@hello_world: (_print "{{string}}! 123")

string := 'hello world'

@_print VALUE:
    echo {{VALUE}}

When executing just it's printing: "{{string}}! 123"

Kind regards, Thomas

@casey
Copy link
Owner

casey commented Sep 17, 2021

Hi Thomas,

Thank you for the kind words!

At the moment, string interpolation is only supported in recipe bodies, not inside string literals. #822 is open to fix this, but it's stalled at the moment.

You can use concatenation with + instead:

@hello_world: (_print string + "! 123")

string := 'hello world'

@_print VALUE:
    echo {{VALUE}}

Hope that works!

@casey casey closed this as completed Sep 17, 2021
@tomikais
Copy link
Author

Thank you for your fast and helpful reply! :-)

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

2 participants