Skip to content

How to pipe with different contexts? #99

@dannys42

Description

@dannys42

Thanks for the great library! Is there a way to do the equivalent of "(cd srcdir && tar cf - . ) | (cd dstdir && tar xf - )" ?

I'd like to do this following this pattern:

var file = try open(forWriting: "output.txt")
runAsync("cmd1", "arg1").stdout.runAsync("cmd2").stdout.write(to: &file)

Rather than simply doing bash execution to prevent unintended string manipulation. Do you have a recommendation on how to approach this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions