Skip to content

Is it possible to write a multiline file in .trycmd tests? #208

Open
@Rigellute

Description

@Rigellute

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-trycmdArea: trycmd packageenhancementImprove the expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions