Skip to content

Commit

Permalink
Tweaks to set config display to align better
Browse files Browse the repository at this point in the history
Also added quotes around env vars in wrapper
  • Loading branch information
frossm committed Feb 12, 2024
1 parent 851f922 commit 4854c9a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>org.fross</groupId>
<artifactId>rpncalc</artifactId>
<version>5.2.1</version>
<version>5.2.2</version>
<packaging>jar</packaging>

<name>rpncalc</name>
Expand Down
2 changes: 1 addition & 1 deletion snap/local/rpncalc-wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
#
# Script is a wrapper which runs rpncalc in a bash script with the needed options
#
exec $SNAP/bin/java -Djava.util.prefs.userRoot="$SNAP_USER_DATA" -Dorg.jline.terminal.dumb=true -jar $SNAP/jar/rpncalc.jar "$@"
exec "$SNAP"/bin/java -Djava.util.prefs.userRoot="$SNAP_USER_DATA" -Dorg.jline.terminal.dumb=true -jar "$SNAP"/jar/rpncalc.jar "$@"
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: rpncalc
version: '5.2.1'
version: '5.2.2'
summary: The command line Reverse Polish Notation (RPN) calculator
description: |
RPNCalc is an easy to use command line based Reverse Polish
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/fross/rpncalc/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ public static void cmdSet(String arg) {
// If there is not a parameter provided, display the current values and return
if (arg.isBlank()) {
Output.printColorln(Ansi.Color.YELLOW, "\n-Configuration Values" + "-".repeat(Main.configProgramWidth - 21));
Output.printColorln(Ansi.Color.CYAN, "Width: " + Main.configProgramWidth + "\t| Sets the program width in characters");
Output.printColorln(Ansi.Color.CYAN, "Align: " + Main.configAlignment + "\t| Set display alignment. Values: (l)eft, (d)ecimal, (r)ight");
Output.printColorln(Ansi.Color.CYAN, "MemSlots: " + Main.configMemorySlots + "\t| Sets number of available memory slots");
Output.printColorln(Ansi.Color.CYAN, String.format("Width: %02d\t| Sets the program width in characters", Main.configProgramWidth));
Output.printColorln(Ansi.Color.CYAN, "Align: " + Main.configAlignment + "\t| Set display alignment. Values: (l)eft, (d)ecimal, (r)ight");
Output.printColorln(Ansi.Color.CYAN, String.format("MemSlots: %02d\t| Sets number of available memory slots", Main.configMemorySlots));
Output.printColorln(Ansi.Color.YELLOW, "-".repeat(Main.configProgramWidth) + "\n");
return;
}
Expand Down

0 comments on commit 4854c9a

Please sign in to comment.