fgimian / paramiko-expect

A Python expect-like extension for the Paramiko SSH library which also supports tailing logs.
MIT License
204 stars 78 forks source link

Add display override for the "send" function #59

Open sa6kad opened 4 years ago

sa6kad commented 4 years ago

It would be great to be able to override "display" behavior in the send calls when needed, similarly to how timeout can be overridden in the expect calls. It is very useful since "display" might not be needed in general, but might be needed for some specific send calls.

fruch commented 4 years ago

What do you mean by display ? echo ? Anyhow PR are mostly welcomed, it would be much clear what you mean...

sa6kad commented 4 years ago

Sorry for a late response. Yes, i mean echo. When running some commands it is not needed to get the echo while some other commands it is needed. If I am not mistaken currently it is "all or nothing" so the output either is shown for everything or not shown at all. My proposal is to make override-able