Skip to content

$({verbose: true}) vs .verbose(true) #1385

@wpchen

Description

@wpchen
import { $ } from 'zx';

await $({ verbose: true })`echo hello`; // prints command and output of command
await $`echo hello`.verbose();          // prints only the output

What's the mental model to understand why the two lines don't output the same thing? I expected them to have the same output. Thank you!

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