Is there a way to see the output from a given command?
Using modules, I have a func that looks like
@func()
async prettier(source: Directory) {
return await dag
.container()
.from('node:20')
.withDirectory('/src/', source)
.withWorkdir('/src')
.withExec(['npx', 'prettier', '.', '--list-different'])
.stderr()
}
The command is current exiting with 1 (which is expected), however It doesn't show the full output.
This is what shows up
✘ Container.stderr: String! 1.7s
✘ exec docker-entrypoint.sh npx prettier . --list-different 1.7s
┃ dagger/src/prettier.ts
┃ npm notice
┃ npm notice New minor version of npm available! 10.2.4 -> 10.5.0
┃ npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.5.0>
┃ npm notice Run `npm install -g npm@10.5.0` to update!
┃ npm notice
Error: response from query: input: motionDagger.prettier call function "prettier": process "tsx --no-deprecation --tsconfig /src/dagger/tsconfig.json /src/dagger/src/__dagger.entrypoint.ts" did not complete successfully: exit code: 1
I do see it writing the output as its executing, however the output is constantly cleared.