Skip to content

Disable auto-finish #55

@mvastola

Description

@mvastola

Describe the problem

So I was hoping to use this gem to show the current status of a buffer in progress bar form. I know the maximum size, so this isn't indeterminate.

My problem? If the buffer gets full, the bar finishes, and there's no way to stop it.

I thought of just adding one to total or something, but that would throw the percentage and bar progress off.

How would the new feature work?

I was thinking an auto_finish: false option, which is checked when currently the bar ends if current == total.

Drawbacks

Can you see any potential drawbacks?

Would need to handle cases where current is set to something > total, but that wouldn't be hard.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions