Variable characters per step in progress bars?

Open
#797 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
r
Domain
cli

Research direction

No file, test, or entry point is named. Start by locating the progress-bar implementation and its documentation or examples, then compare the requested per-step characters with the existing static-character model. Done should be a clear decision and documented behavior for variable characters, including whether completed steps can be updated retroactively.

Written by the indexing model from the issue text.

Description

Apologies if this is something I've missed, but I can't find any mention of it.

Is it--or would it be!--possible for a progress bar to have different characters for current, incomplete, and complete at each step?

A couple of potential uses I see for this:

  • a progress bar that runs in a gradient from red to green as it progresses;
  • a progress bar that can record success or failure (or other statuses) at each step

(This could be interpreted in two ways: one would be that a character is set when that step is passed, and remains fixed from then on. I suppose another option would be that certain completed characters could be variable and be retroactively updated with each update.)

I feel like I might just be missing an obvious option or reference somewhere, but I can't see any documentation or examples that mention this; everything just seems to pre-set static characters for current, complete, and incomplete.

Dominant language
R
Stars
726
Forks
94
Avg merge
3h 35m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from r-lib/cli

All issues in r-lib/cli

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.