Merging upstream version 1.7.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
a2e22f9fd8
commit
4861581ff0
9 changed files with 20 additions and 9 deletions
|
@ -1,6 +1,5 @@
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/ambv/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 20.8b1
|
rev: 21.12b0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
language_version: python3.7
|
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
## Unreleased - TBD
|
## 1.7.0 - 2022-01-11
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
|
* Add config option show_bottom_toolbar.
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Pin pygments version to prevent breaking change.
|
||||||
|
|
||||||
## 1.6.0 - 2021-03-15
|
## 1.6.0 - 2021-03-15
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ Examples:
|
||||||
- litecli sqlite_db_name
|
- litecli sqlite_db_name
|
||||||
```
|
```
|
||||||
|
|
||||||
A config file is automatically created at `~/.config/litecli/config` at first launch. See the file itself for a description of all available options.
|
A config file is automatically created at `~/.config/litecli/config` at first launch. For Windows machines a config file is created at `~\AppData\Local\dbcli\litecli\config` at first launch. See the file itself for a description of all available options.
|
||||||
|
|
||||||
## Docs
|
## Docs
|
||||||
|
|
||||||
|
|
|
@ -18,3 +18,4 @@ Contributors:
|
||||||
* Zhaolong Zhu
|
* Zhaolong Zhu
|
||||||
* Zhiming Wang
|
* Zhiming Wang
|
||||||
* Shawn M. Chapla
|
* Shawn M. Chapla
|
||||||
|
* Paweł Sacawa
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
__version__ = "1.6.0"
|
__version__ = "1.7.0"
|
||||||
|
|
|
@ -65,6 +65,9 @@ wider_completion_menu = False
|
||||||
prompt = '\d> '
|
prompt = '\d> '
|
||||||
prompt_continuation = '-> '
|
prompt_continuation = '-> '
|
||||||
|
|
||||||
|
# Show/hide the informational toolbar with function keymap at the footer.
|
||||||
|
show_bottom_toolbar = True
|
||||||
|
|
||||||
# Skip intro info on startup and outro info on exit
|
# Skip intro info on startup and outro info on exit
|
||||||
less_chatty = False
|
less_chatty = False
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,7 @@ class LiteCli(object):
|
||||||
self.formatter.litecli = self
|
self.formatter.litecli = self
|
||||||
self.syntax_style = c["main"]["syntax_style"]
|
self.syntax_style = c["main"]["syntax_style"]
|
||||||
self.less_chatty = c["main"].as_bool("less_chatty")
|
self.less_chatty = c["main"].as_bool("less_chatty")
|
||||||
|
self.show_bottom_toolbar = c["main"].as_bool("show_bottom_toolbar")
|
||||||
self.cli_style = c["colors"]
|
self.cli_style = c["colors"]
|
||||||
self.output_style = style_factory_output(self.syntax_style, self.cli_style)
|
self.output_style = style_factory_output(self.syntax_style, self.cli_style)
|
||||||
self.wider_completion_menu = c["main"].as_bool("wider_completion_menu")
|
self.wider_completion_menu = c["main"].as_bool("wider_completion_menu")
|
||||||
|
@ -557,7 +558,7 @@ class LiteCli(object):
|
||||||
reserve_space_for_menu=self.get_reserved_space(),
|
reserve_space_for_menu=self.get_reserved_space(),
|
||||||
message=get_message,
|
message=get_message,
|
||||||
prompt_continuation=get_continuation,
|
prompt_continuation=get_continuation,
|
||||||
bottom_toolbar=get_toolbar_tokens,
|
bottom_toolbar=get_toolbar_tokens if self.show_bottom_toolbar else None,
|
||||||
complete_style=complete_style,
|
complete_style=complete_style,
|
||||||
input_processors=[
|
input_processors=[
|
||||||
ConditionalProcessor(
|
ConditionalProcessor(
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -24,7 +24,7 @@ readme = open_file("README.md")
|
||||||
|
|
||||||
install_requirements = [
|
install_requirements = [
|
||||||
"click >= 4.1",
|
"click >= 4.1",
|
||||||
"Pygments >= 1.6",
|
"Pygments>=1.6,<=2.11.1",
|
||||||
"prompt_toolkit>=3.0.3,<4.0.0",
|
"prompt_toolkit>=3.0.3,<4.0.0",
|
||||||
"sqlparse",
|
"sqlparse",
|
||||||
"configobj >= 5.0.5",
|
"configobj >= 5.0.5",
|
||||||
|
|
|
@ -210,7 +210,11 @@ def test_verbose_feature_of_favorite_query(executor):
|
||||||
|
|
||||||
results = run(executor, "\\f sh_param 1")
|
results = run(executor, "\\f sh_param 1")
|
||||||
assert_result_equal(
|
assert_result_equal(
|
||||||
results, title=None, headers=["a", "id"], rows=[("abc", 1)], auto_status=False,
|
results,
|
||||||
|
title=None,
|
||||||
|
headers=["a", "id"],
|
||||||
|
rows=[("abc", 1)],
|
||||||
|
auto_status=False,
|
||||||
)
|
)
|
||||||
|
|
||||||
results = run(executor, "\\f+ sh_param 1")
|
results = run(executor, "\\f+ sh_param 1")
|
||||||
|
|
Loading…
Add table
Reference in a new issue