How can I return exit status 1 from a ys script?
ys -e 'exit: 1' ; echo $?ys -e '1:exit' ; echo $?
1ys -e 'exit(1)' ; echo $?
1ys -e '1.exit()' ; echo $?
1% ys -e '(exit 1)' ; echo $?
1
(If you must...)
😂exit: 1🙂
Oh easy, love it. Thanks
I'm really excited to finally be able to announce this here... https://yamlscript.org/ has a brand new website! It's based off the amazing https://squidfunk.github.io/mkdocs-material/ static site framework. I've mixed in YS in various places that make working with it extra cool. YAML + Markdown + 100s of compatible Python plugins +YS 🙂 For instance try the edit button on https://yamlscript.org/doc/ys-std/. It uses MDYS (Markdown + YS) to define the page with data and then pass it through a small YS function to format the data into whatever markdown I want... I whipped up the "Discuss this page" button thing this morning. Play around with the site and let me know what you think!!