dsherret / dax

Cross-platform shell tools for Deno and Node.js inspired by zx.
MIT License
1.01k stars 35 forks source link

fix: progress bars should not conflict with inherited command pipes #53

Closed dsherret closed 1 year ago

dsherret commented 1 year ago

This should just work:

const name = await $.prompt("What's your name?");

await $.progress("Running command...").with(async () => {
  // this here should work
  await $`sleep 1s && echo Hello, ${name}! && sleep 1s && echo Hello again!`;
});