cli icon indicating copy to clipboard operation
cli copied to clipboard

Moving an octocli command to the background clears the active line

Open voronoipotato opened this issue 2 years ago • 2 comments

The bug

When I run octopus task wait it consistently prints out and clears the line. This is not what I would expect with --no-prompt. It should run, output new information as it gets it, and return 0 when completed.

Command to reproduce

octopus task wait $taskId --no-prompt -f basic -s $OCTOPUS_SPACE &
# outputs, then repeatedly clears the active line

Outcome

The terminal becomes unusable with this task backgrounded due to the manual clearing. It should not ever clear if --no-prompt is selected as I'm explicitly not seeking an interactive experience, I just want the output and the command to end when there is a result.

Versions

cli: latest

Octopus Server: all

voronoipotato avatar Nov 06 '23 22:11 voronoipotato

@voronoipotato Which OS are you seeing this problem?

I tested on MacOS and didn't see this behaviour.

benPearce1 avatar Mar 12 '24 02:03 benPearce1

I am using windows with git-bash.

GNU bash, version 4.4.23(1)-release (x86_64-pc-msys)

voronoipotato avatar Mar 19 '24 19:03 voronoipotato