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

multiline command can easily get ignored/discarded #156

Closed
teto opened this issue Mar 7, 2024 · 1 comment
Closed

multiline command can easily get ignored/discarded #156

teto opened this issue Mar 7, 2024 · 1 comment

Comments

@teto
Copy link

teto commented Mar 7, 2024

If I configure the following process

  simworker:
    namespace: core
    command:
      source pgtemp.env
      nix run .#simworker

then it's considered as complete but it looks like it does nothing (or possibly just run the first line)
image

Now if you add a pipe to tell yaml to expect a multiline command and the last line of command is executed correctly

  simworker:
    namespace: core
    # NOTICE THE PIPE
    command: |
      source pgtemp.env
      nix run .#simworker

The current behavior might make sense from a YAML perspective etc but from the user perspective, I feel like a warning could help

@F1bonacc1
Copy link
Owner

Multiline support is compliant with yaml specifications.
To make things clearer, I added documentation for all the supported variants of multiline commands.

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