Skip to content

Allow to configure the writer to something other than stdout #30

@lowlighter

Description

@lowlighter

It seems like currently it's hardcoded to stdout:

private writer = Deno.stdout.writable.getWriter();

But it'd be nice to be able to set it to stderr too

The reasoning is that for cli, it's not uncommon to depends on stdout returns when using the shell syntax (like $()), but currently this messes the output

deno --allow-run=$(deno task install-and-return-path) run mod.ts

Kind similar behavior like curl/wget uses for progress bar.
Actually it may be a better default to use stderr, but it may be a breaking change

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