Open
Description
I'd like to be able to create multiline files from within the trycmd
blocks to serve as test fixtures. Is it possible?
I'm thinking something like this (pseudo code):
write todos.txt = """
- [x] Wash the dishes
- [ ] Mow lawn
"""
$ mytodos -f todos.txt
Mow lawn
Would be awesome if you could assign stdin like this too:
stdin = """
- [x] Wash the dishes
- [ ] Mow lawn
"""
$ mytodos -f -
Mow lawn