Closed sourishkrout closed 3 months ago
It's disabled by default: https://github.com/stateful/runme/blob/e163a3a9a20284457c8c518b753b62257e66a800/internal/command/command_virtual.go#L98-L100
Should it be enabled or configurable?
Should it be enabled or configurable?
I wish I could remember the logic because it wasn't just always on or always off. Do you see anything in the runnerv1 implementation that's revelatory?
@adambabik when you search for DisableEcho
it appears that the echo is enabled when a TTY is attached which is always true for a VirtualCommand, no?
I wish I could remember the logic because it wasn't just always on or always off. Do you see anything in the runnerv1 implementation that's revelatory?
In the runnerv1
service, echo is always enabled. When using the CLI, executing a program which is a file or shell, and the block is marked as interactive, which is a default, then echo is disabled. I am not sure if it was well thought out, but the fact is that in runnerv2
echo is always disabled. Should I flip it to stay compatible?
@adambabik when you search for
DisableEcho
it appears that the echo is enabled when a TTY is attached which is always true for a VirtualCommand, no?
This is true and VirtualCommand
is used when the block is interactive, which is a default.
@sourishkrout yes, let's go ahead and flip it please. Being "incompatible" otherwise means the integration with the notebook terminal stops working as expected.
@sourishkrout I merged #576. Let me know if there is anything else that should be done as a part of this ticket.
@sourishkrout I merged #576. Let me know if there is anything else that should be done as a part of this ticket.
This looks good now 👍 . Thank you!
Simple example is running
read
. Unclear what needs to toggle whether or not echoing is enabled. Might have to do some digging in Runnerv1.https://github.com/stateful/runme/blob/e163a3a9a20284457c8c518b753b62257e66a800/internal/command/command_virtual.go#L98-L100