Skip to content

Commit

Permalink
Added sandbox warning to bottom of trending display
Browse files Browse the repository at this point in the history
  • Loading branch information
frossm committed Apr 14, 2022
1 parent c97313d commit 0ed2933
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 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>quoter</artifactId>
<version>4.0.8</version>
<version>4.0.9</version>
<packaging>jar</packaging>

<name>quoter</name>
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: quoter
version: '4.0.8'
version: '4.0.9'
summary: Command line utility to pull stock and index quotes
description: |
Quoter fetches online stock quotes and index data for easy display on
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/fross/quoter/HistoricalQuotes.java
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public static void displayTrendingMap(String symb, String token) {

// Display the Footer
Output.printColorln(Ansi.Color.CYAN, " ".repeat(11) + "+" + "-".repeat(graphWidth / 2) + "+" + "-".repeat(graphWidth / 2) + "+");
Output.printColorln(Ansi.Color.WHITE, " ".repeat(12) + sv + " ".repeat(titleSpaces1) + midNumber + " ".repeat(titleSpaces2) + lv + "\n\n");
Output.printColorln(Ansi.Color.WHITE, " ".repeat(12) + sv + " ".repeat(titleSpaces1) + midNumber + " ".repeat(titleSpaces2) + lv + "\n");
}

}
3 changes: 3 additions & 0 deletions src/main/java/org/fross/quoter/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,9 @@ public static void main(String[] args) {
if (trendFlag == true && !symbolList.isEmpty()) {
for (String i : symbolList) {
HistoricalQuotes.displayTrendingMap(i, IEXCloudToken);
if (sandboxFlag == true) {
Output.printColorln(Ansi.Color.RED, Format.CenterText(trendingWidth, "**** SANDBOX MODE ENABLED - DATA IS INCORRECT ****"));
}
}
}

Expand Down

0 comments on commit 0ed2933

Please sign in to comment.