From a1ed92dab2827b349e4e51a654b42c1c7a5c1c8b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 14 Jan 2022 15:41:21 +0100 Subject: Merging upstream version 1.7.0. Signed-off-by: Daniel Baumann --- litecli/AUTHORS | 1 + litecli/__init__.py | 2 +- litecli/liteclirc | 3 +++ litecli/main.py | 3 ++- 4 files changed, 7 insertions(+), 2 deletions(-) (limited to 'litecli') diff --git a/litecli/AUTHORS b/litecli/AUTHORS index d5265de..194cdc7 100644 --- a/litecli/AUTHORS +++ b/litecli/AUTHORS @@ -18,3 +18,4 @@ Contributors: * Zhaolong Zhu * Zhiming Wang * Shawn M. Chapla + * Paweł Sacawa diff --git a/litecli/__init__.py b/litecli/__init__.py index e4adfb8..14d9d2f 100644 --- a/litecli/__init__.py +++ b/litecli/__init__.py @@ -1 +1 @@ -__version__ = "1.6.0" +__version__ = "1.7.0" diff --git a/litecli/liteclirc b/litecli/liteclirc index 5bfffbd..f0a4285 100644 --- a/litecli/liteclirc +++ b/litecli/liteclirc @@ -65,6 +65,9 @@ wider_completion_menu = False prompt = '\d> ' 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 less_chatty = False diff --git a/litecli/main.py b/litecli/main.py index 24b1bb4..faa7322 100644 --- a/litecli/main.py +++ b/litecli/main.py @@ -83,6 +83,7 @@ class LiteCli(object): self.formatter.litecli = self self.syntax_style = c["main"]["syntax_style"] 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.output_style = style_factory_output(self.syntax_style, self.cli_style) 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(), message=get_message, 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, input_processors=[ ConditionalProcessor( -- cgit v1.2.3