-
Notifications
You must be signed in to change notification settings - Fork 147
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
Allow sqlline customizations (supported options, product version, the startup quotes) #106
Comments
I support this; however, properties may be an alternative way of customizing the startup message. Properties can be specified using the |
@julianhyde I have submitted the PR allowing to customize start up message using Though I have one question: currently Drill execute command is looking like
though SqlLine complains it cannot find the file. Using Does sqlline suport passing options in properties files on start up from the file in classpath? Or I am doing something wrong. |
Reviewing PR #118. I like the idea of AppInfo... should we take it further? Should the application class also control the set of commands that are loaded on startup? What else? (I'd rather have one extension point than several.) I think that there should be a public base class, and we should recommend that people extend that. So that they won't be broken if we extend the interface in future. Thanks for adding tests & doc. |
Sounds like a nice idea. I think
|
I think it could also be used to set |
@julianhyde updated the PR: new class ApplicationConfig contains information about: info message, output formats, commands, drivers and their examples. User may override init methods to modify original values. Class name can be passed to Sqlline using -ac or !appconfig. Please take a look. |
I've merged your PR into https://github.com/julianhyde/sqlline/tree/scratch and am now testing. @arina-ielchiieva and @snuyanzin can you review the changes I made. |
@julianhyde this was unexpected :) Thank you for making the changes!
|
Thank you for merging
|
I like how in 23149f1 you created a test
Yes, all commands should be there. Can you log an issue for that? |
I agree. Can you please fix that, and also move
I agree we need consistency. I would slightly prefer unmodifiable/immutable collections. Even though that means that the overriding method has to make a copy. Any chance you can make these changes in the next few days? This is the last issue to fix before 1.5 Rc0. |
sure, done #127 |
Opened PR against 106-application branch - #130. |
Fixed in 5d4c0a5. |
Add ability to define the options supported, the default startup options, the product version, and the
start up quotes to an external resource file that is optionally passed to SQLLine at startup.
All of that is hard-coded in Drill fork (https://github.com/mapr/sqlline/commits/1.1.9-drill-r7) but ideally that should be loaded from external file.
Example of custom product and start up quotes:
The text was updated successfully, but these errors were encountered: