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 a way to escape {{braces}} so they are not getting replaced in commands #3851

Closed
bhelm opened this issue Jun 20, 2024 · 2 comments
Closed

Comments

@bhelm
Copy link

bhelm commented Jun 20, 2024

    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
Copy link
Contributor

github-actions bot commented Sep 9, 2024

This issue has been automatically closed. Please, open a discussion for bug reports and feature requests.

Read more: [https://github.com//discussions/3888]

1 similar comment
Copy link
Contributor

github-actions bot commented Sep 9, 2024

This issue has been automatically closed. Please, open a discussion for bug reports and feature requests.

Read more: [https://github.com//discussions/3888]

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 9, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants