interactive mode
stacksc opened this issue · comments
can we include a while loop on interactive mode, so we can optionally stay inside the shell interface and not exit until we CTRL D.
The current release just executes the command and it will exit the shell. Some users prefer to stay inside the shell interface.
def start_interactive_shell(ctx):
while True:
Hi Chris, closing the interactive shell after execution of each CLI command has been a design decision.
If there are many customers ask for it, then we shall sure consider it as future enhancement.
For now, I can suggest a workaround to simulate this and see how you like it. In a bash script or function:
function ocii { while [ 1 ] do oci -i done }
Then run ocii to start the interactive cli shell like environment.
Press Ctrl-C twice to exit.
thx @karthik-k-kamath for getting back. That should be ok for a temporary work-around. thanks!