https://linen.dev logo
Is there any way to silence the output
# mirrord-help
s
Is there any way to silence the output from mirrord? Or only extract the actual command output?
a
hi @Sora , can you elaborate what you mean please?
s
Yes definitely! I'm making a small script around running a particular cli in my cluster using mirrord and want to use
gum
as a spinning loading indicator. When the command finishes, I'd like to only get the output from the actual command, not mirrord as well. I essentially want to not see anything until the command finishes and only get the output from said comment, removing the whole
Copy code
* Running command: traceroute example.com
* mirrord will run without a target, no configuration file was loaded
* mirrord will run without the mirrord Operator
* env: all remote environment variables will be fetched
* fs: file operations will default to read from the remote
* incoming: incoming traffic will be mirrored
* outgoing: forwarding is enabled on TCP and UDP
* dns: DNS will be resolved remotely
* internal proxy: logs will be written to /tmp/mirrord-intproxy-1749649854-Q09vlh8.log
⠤ mirrord exec
    ✓ running on latest (3.144.0)!
    ✓ ready to launch process
      ✓ layer extracted
      ✓ operator not found
      ✓ agent pod default/mirrord-agent-ila6uc6s9k-9bjfv created
      ✓ pod is ready
    ✓ config summary
bit.
a
MIRRORD_PROGRESS_MODE=off
as env should get you sorte.d
s
I knew there was a really simple way that I couldn't find. Thank you so much