Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@0xPraedico
Copy link

✨ Summary

This PR adds proper support for the --quiet flag in both the pinoc build and pinoc test commands.

When the --quiet flag is used:

  • For build: it passes the --quiet argument after -- to cargo build-sbf
  • For test: it suppresses both stdout and stderr using Stdio::null(), ensuring no noisy test output is shown

This improves UX in CI environments or when developers want cleaner command output.


Changes

  • pinoc build:
    • Updated to pass -- --quiet to cargo build-sbf when --quiet is specified
  • pinoc test:
    • Updated to pass --quiet to cargo test correctly
    • Redirects output streams to /dev/null via Stdio::null() when --quiet is used

Example usage

pinoc build          # shows build output
pinoc build --quiet  # suppresses build output

pinoc test           # shows test results and logs
pinoc test --quiet   # suppresses test logs and output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant