-
Notifications
You must be signed in to change notification settings - Fork 25.6k
SQL: new SQL CLI logo #35261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQL: new SQL CLI logo #35261
Conversation
…o sql_elastic_logo
…o sql_elastic_logo
|
Pinging @elastic/es-search-aggs |
matriv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool!!
|
Cute. |
| try (BufferedReader reader = new BufferedReader(new InputStreamReader(in, StandardCharsets.UTF_8))) { | ||
| String line; | ||
| while ((line = reader.readLine()) != null) { | ||
| if (line.length() > lineLength) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use Math.max() to avoid the if.
| boolean isLogoOrException = false; | ||
| while (!isLogoOrException) { | ||
| String line = readLine(); | ||
| isLogoOrException = line.contains("SQL"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can check with "SQL".equals(line.trim()) to avoid the isLogoOrException.
|
Left a couple of suggestions. |
matriv
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
costin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Next stop, ANSI colors :)
| } | ||
|
|
||
| // print the version centered on the last line | ||
| char[] whitespaces = new char[lineLength / 2 - Version.CURRENT.version.length() / 2]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To minimize rounding errors use (lineLength-Version.CURRENT.version.length())/2. It's also shorter.
Added new SQL CLI logo representing the Elastic logo "painted" with "Elastic" words, "SQL" under the logo and version on the last line
…-agg * master: (528 commits) Register Azure max_retries setting (elastic#35286) add version 6.4.4 [Docs] Add painless context details for bucket_script (elastic#35142) Upgrade jline to 3.8.2 (elastic#35288) SQL: new SQL CLI logo (elastic#35261) Logger: Merge ESLoggerFactory into Loggers (elastic#35146) Docs: Add section about range query for range type (elastic#35222) [ILM] change remove-policy-from-index http method from DELETE to POST (elastic#35268) [CCR] Forgot missing return statement, SQL: Fix null handling for AND and OR in SELECT (elastic#35277) [TEST] Mute ChangePolicyForIndexIT#testChangePolicyForIndex Serialize ignore_throttled also to 6.6 after backport Check for java 11 in buildSrc (elastic#35260) [TEST] increase await timeout in RemoteClusterConnectionTests Add missing up-to-date configuration (elastic#35255) Adapt Lucene BWC version SQL: Introduce Coalesce function (elastic#35253) Upgrade to lucene-8.0.0-snapshot-31d7dfe6b1 (elastic#35224) Fix failing ICU tests (elastic#35207) Prevent throttled indices to be searched through wildcards by default (elastic#34354) ...
Added new SQL CLI logo representing the Elastic logo "painted" with "Elastic" words, "SQL" under the logo and version on the last line
This adds a new logo for the SQL CLI representing the Elastic logo "painted" with "Elastic" letters.