Skip to content
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

[SQLLINE-248] Extract into a separate method the logic of switching o… #257

Closed
wants to merge 2 commits into from

Conversation

snuyanzin
Copy link
Collaborator

The PR extracts into a separate method the common logic allowing a user to confirm/reject actions without SqlLineParser side effects

partially fixes #248

… values for completion

Complete for properties values like outputformat or boolean properties.

Use Application#getName2HighlightStyle for color scheme available
values.

Correct method sqlline.SqlLineOpts#optionCompleters to generate
org.jline.builtins.Completers.RegexCompleter for
!set command based on (in decreasing order of priority):
1. Customizations
2. Available values defined in BuiltInProperty
3. Type of property. Currently there is completion only for boolean
   type with completion values from
   sqlline.SqlLineProperty#BOOLEAN_VALUES

Add javadoc for sqlline.SqlLineOpts#optionCompleters

Add tests for completions.

Add test for !reset properties command.
@swaroopak
Copy link

@snuyanzin Could we please merge this sooner than later?

@julianhyde
Copy link
Owner

Merged as f3263e9; partially fixes #248.

@julianhyde julianhyde closed this Jan 14, 2019
@snuyanzin snuyanzin deleted the SQLLINE_248 branch January 15, 2019 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

!dropall doesn't work in master branch
3 participants