Skip to content

Commit

Permalink
version bump; credit PR authors
Browse files Browse the repository at this point in the history
  • Loading branch information
ctongfei committed Aug 11, 2023
1 parent cc53d38 commit 141d09c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@
<id>deejgregor</id>
<name>DJ Gregor</name>
</developer>
<developer>
<id>PakhomovAlexander</id>
<name>Aleksandr Pakhomov</name>
</developer>
</developers>

<dependencies>
Expand Down Expand Up @@ -204,6 +208,7 @@
<version>3.0.0</version>
<configuration>
<doclint>all,-missing</doclint>
<detectJavaApiLink>false</detectJavaApiLink>
</configuration>
<executions>
<execution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class ProgressBarStyleBuilder {
private static final String ESC_CODE = "\u001b[";

private ProgressBarStyle style = ProgressBarStyle.ASCII;
private ProgressBarStyle style = new ProgressBarStyle("\r", "[", "", "]", '=', ' ', ">", ' ');
private byte colorCode = 0;

/** Set refresh prompt. Default "\r". */
Expand Down Expand Up @@ -48,19 +48,19 @@ public ProgressBarStyleBuilder space(char space) {
return this;
}

/** Set fraction symbols. Default ">" */
/** Set fraction symbols. */
public ProgressBarStyleBuilder fractionSymbols(String fractionSymbols) {
style.fractionSymbols = fractionSymbols;
return this;
}

/** Set right side fraction symbol. Default ">" */
/** Set right side fraction symbol. */
public ProgressBarStyleBuilder rightSideFractionSymbol(char rightSideFractionSymbol) {
style.rightSideFractionSymbol = rightSideFractionSymbol;
return this;
}

/** Set ANSI color code. Default 0 (no color). Must be in [0, 255]. */
/** Set ANSI color code. Default 0 (no color). Must be in {0, ..., 255}. */
public ProgressBarStyleBuilder colorCode(byte code) {
this.colorCode = code;
return this;
Expand Down

0 comments on commit 141d09c

Please sign in to comment.