deployer icon indicating copy to clipboard operation
deployer copied to clipboard

Add a way to escape {{braces}} so they are not getting replaced in commands

Open bhelm opened this issue 8 months ago • 0 comments

    run(
        'docker ps --all --format "{{.ID}}\t{{.Names}}"'
    );

I tried to run a command containing {{.ID}} placeholders that are used in the docker compose ps formatting template, but these are picket up by the deployer parse function.

I would suggest to add the posibillity to excape the braces using , replace the variables and after that replace { to { for the command execution.

That way, i could write it like this:

    run(
        'docker ps --all --format "\{\{.ID\}\}\t\{\{.Names\}\}"'
    );

Thank You.

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

bhelm avatar Jun 20 '24 13:06 bhelm