-
Notifications
You must be signed in to change notification settings - Fork 521
[options]: Replace --disable-progress-updates with --progress (none | ansi) #808
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
Conversation
jglogan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's look at the ansi aspect of this next week.
Right now the progress bar defaults to ansi style behavior (fine grained updates rewrite the same line over and over).
@dkovba would it be best to break this into two PRs?
- The first is this one, with
--progress noneand--progress ansivalues in place of--disable-progress-updates. - A follow-up PR adds support for
plainprogress to theTerminalProgresstypes.
So to be clear, if we want the progress bar to be disabled, the option would be however, the |
dkovba
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution!
It seems we need to rename plain in the code to ansi.
Closes #641
Without implementing all three options, we shouldn't close the issue.
Two PRs are fine. But the |
|
@saehejkang @dkovba I've updated the #641 issue description for just |
c30c2c3 to
ac0df43
Compare
|
@saehejkang That looks good. It looks like you'll need to do one more rebase onto main since some changes to the docs got merged today. After that we can get this merged. |
|
@saehejkang I went ahead and fixed that with the web editor, no need to put you through more of this rebase nonsense 😃 @dkovba Please have a look now as it still requires your ✅ |
I tend to click the merge with main button in PRs, so I am unsure if I should continue doing that? Is it just there should only be 1 merge with main commit (just don't click the button more than once)? |
|
The commit history should just include your actual feature commit(s); there shouldn't be merge commits from If your PR branch conflicts with |
|
After discussing the guidance for merge commits, we’ve decided that rebasing is not mandatory. We’ll review and accept PRs that include merge commits. |
Relates to #808 This PR is a refactor to add the `ProgressType` enum for the `--progress` option + fixing a typo in the command help.
|
I still have a question about how this option below will be updated (looks like the only other place we pass the flag in the BuildCommand). @Option(name: .long, help: ArgumentHelp("Progress type (format: auto|plain|tty)]", valueName: "type"))
var progress: String = "auto"Do we want this move to the global flags file? Would it be defined in the |
|
At this moment, the builder is using a separate progress implementation. It can be different from the progress bar in the rest of the project. |
02d514c to
ddd14b3
Compare
dkovba
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Type of Change
Motivation and Context
Part 1 of #641
Testing