Possible for Bash scripts to return JSON? #1612
-
Hey, I am currently trying to write a bash script which should return a PNG via the https://docs.windmill.dev/docs/reference#rich-display-rendering - but if I interpret windmill/backend/windmill-worker/src/worker.rs Line 1368 in d810e17 can this be changed, or did I do a mistake? :) All the best, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Nevermind, I work-arounded it by using |
Beta Was this translation helpful? Give feedback.
-
To give context around this for posterity. The reason why other languages can return json and not bash is that there is no notion of types in bash. In most programming languages, any value is represented by: A Tag, and a memory content or ref to a memory content. There is no such thing in bash, it's just stdout. We could invent our own standard (e.g: if the line start with |
Beta Was this translation helpful? Give feedback.
Nevermind, I work-arounded it by using
Deno.run
instead :)