Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial dotprogress indicator for non-interactive mode. #2428

Merged
merged 2 commits into from Mar 14, 2023

Conversation

mitchell-as
Copy link
Contributor

@mitchell-as mitchell-as commented Mar 13, 2023

StoryDX-1449 Runtime progress has a non-interactive mode

@mitchell-as mitchell-as requested a review from daved March 14, 2023 14:56
@mitchell-as mitchell-as marked this pull request as ready for review March 14, 2023 14:56
@@ -55,7 +55,7 @@ func initOutput(flags outputFlags, formatName string, shellName string) (output.
OutWriter: os.Stdout,
ErrWriter: os.Stderr,
Colored: !flags.DisableColor(),
Interactive: term.IsTerminal(int(os.Stdin.Fd())),
Interactive: !flags.NonInteractive && term.IsTerminal(int(os.Stdin.Fd())),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to verify that this conditional is consciously different than the "isInteractive" variable in the main.go file. Normally it is nice to calculate this value once, then pass it around to all interested locations.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've created a ticket for this question: https://activestatef.atlassian.net/browse/DX-1667

@mitchell-as mitchell-as requested a review from Naatan March 14, 2023 16:53
Copy link
Member

@Naatan Naatan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet and simple!

@mitchell-as mitchell-as merged commit 5cc54b4 into version/0-38-0-RC1 Mar 14, 2023
6 checks passed
@mitchell-as mitchell-as deleted the mitchell/dx-1449 branch March 14, 2023 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants