typesafehub / conductr-cli

CLI for Lightbend ConductR
Other
16 stars 21 forks source link

`conduct backup` prints to TTY #539

Closed longshorej closed 7 years ago

longshorej commented 7 years ago

When using conduct backup, it should do a TTY check similar to this to ensure that we don't print "garbage" to the TTY:

https://github.com/typesafehub/conductr-cli/blob/master/conductr_cli/bndl_main.py#L34-L36

So I'd expect behavior like this:

Failure:

$ conduct backup
conduct: Refusing to write to terminal. Provide -o or redirect elsewhere
-> 2

Success:

$ conduct backup > my-file
-> 0