Skip to content

Support command builder #34

@konard

Description

@konard

Similar to:

Command.make("cat", "./some-file.txt").pipe(
  Command.stdout("inherit"),
  Command.exitCode
)

(https://effect.website/docs/platform/command and https://doc.rust-lang.org/std/process/struct.Command.html)

Make something like:

$.command("cat", "./some-file.txt").pipe(
  $.command.stdout("inherit"),
  $.command.exitCode
).run();

That will remove problems with quoting and shell injection.

So the $.command chain should produce a runnable string, and we should be able to run it immediately if we want to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions