score-spec / score-compose

Reference implementation for docker-compose target platform support
https://score.dev/
Apache License 2.0
445 stars 40 forks source link

[bug] score-compose resources get-outputs is missing newline #160

Closed astromechza closed 2 months ago

astromechza commented 2 months ago

behavior

$ score-compose resources get-outputs 'dns.default#my-app.dns' --format '{{ .host }}' && echo hello
aoidfhaofih.localhello

expected behavior

aoidfhaofih.local
hello

I think this was intended to make it easier to embed in a string like echo "foo $( score-compose resources get-outputs ..) bar" but the terminal will already trim whitespace in that case.

It's fairly unexpected behavior. But should be fairly easy to fix.