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 for multi-line commands #233

Open
vazirim opened this issue Dec 19, 2024 · 2 comments
Open

Support for multi-line commands #233

vazirim opened this issue Dec 19, 2024 · 2 comments
Labels

Comments

@vazirim
Copy link
Member

vazirim commented Dec 19, 2024

Is your feature request related to a problem? Please describe.
Multi-line commands don't work as expected with the command block.

Describe the solution you'd like
Address any issues arising for the support of multi line commands.

Describe alternatives you've considered
N/A

Additional context

This issue was proposed by @eloycoto.

@esnible
Copy link
Member

esnible commented Dec 23, 2024

Example?

When I started using PDL I was confused about the difference between multi-line YAML strings beginning with | and those beginning with >. Does this issue relate to that?

@eloycoto
Copy link
Contributor

  - lang: command
    code: |
        ls -lah
              jq -r '
                  .[] |
                  select(
                      .person.name == "eloy"
                  ) | ([
                  "Name: "+.person.name,
                  "Email:" +.person.email
                  ]| join("\n"))
                ' people.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants