feat: added support for barCompleteChar
being an array of string plus others associated
#144
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I have been tinkering to add a "segmented" progress bar (as suggested in #129) into this library. I realize it needs a more condensed way to represent "progress" for such a bar to be legible in the process. I have thus taken the time and inspiration from the Docker CLI and implemented support for multiple complete characters and a preset for braille pattern dot unicode characters.
Commit Message
feat(formatter): updated bar formatter to support multiple "progressive" bar complete characters
feat(preset): added preset for Docker-CLI-style unicode braille pattern dot characters
refactor(options): updated
parse
to use computed property for instance-specific options (barCompleteString
,barIncompleteString
, andautopaddingChar
)refactor(options): dropped
assignDerivedOptions
for computed propertiesrefactor: updated usage of functions in
options
in other functionsrefactor: renamed imports for intuitiveness
refactor: added
.js
back to import pathstest(formatter): updated how defaults are propagated to individual tests
test(braille-patterns): added test for braille pattern preset