summaryrefslogtreecommitdiffstats
path: root/iredis/entry.py
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2023-11-04 18:52:16 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2023-11-04 18:52:16 +0000
commit61a3777eb82896afbb2472017210c7642751ecc2 (patch)
treefbd20f88f28005e6083560ba65e0194403aa3e42 /iredis/entry.py
parentReleasing debian version 1.13.1-1. (diff)
downloadiredis-61a3777eb82896afbb2472017210c7642751ecc2.tar.xz
iredis-61a3777eb82896afbb2472017210c7642751ecc2.zip
Merging upstream version 1.14.0.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'iredis/entry.py')
-rw-r--r--iredis/entry.py22
1 files changed, 16 insertions, 6 deletions
diff --git a/iredis/entry.py b/iredis/entry.py
index c7ae76c..0799a07 100644
--- a/iredis/entry.py
+++ b/iredis/entry.py
@@ -61,8 +61,8 @@ def greetings():
reason = ""
server_version = f"redis-server {config.version} {reason}"
- home_page = "Home: https://iredis.io"
- issues = "Issues: https://iredis.io/issues"
+ home_page = "Home: https://iredis.xbin.io/"
+ issues = "Issues: https://github.com/laixintao/iredis/issues"
display = "\n".join([iredis_version, server_version, home_page, issues])
if config.raw:
display = display.encode()
@@ -177,9 +177,9 @@ def repl(client, session, start_time):
try:
command = session.prompt(
prompt_message(client),
- bottom_toolbar=BottomToolbar(command_holder).render
- if config.bottom_bar
- else None,
+ bottom_toolbar=(
+ BottomToolbar(command_holder).render if config.bottom_bar else None
+ ),
input_processors=[
UpdateBottomProcessor(command_holder, session),
PasswordProcessor(),
@@ -275,6 +275,12 @@ VERIFY_SSL_HELP = """Set the TLS certificate verification strategy"""
@click.option("--shell/--no-shell", default=None, is_flag=True, help=SHELL)
@click.option("--pager/--no-pager", default=None, is_flag=True, help=PAGER_HELP)
@click.option(
+ "--greetings/--no-greetings",
+ default=None,
+ is_flag=True,
+ help="Enable or disable greeting messages",
+)
+@click.option(
"--verify-ssl",
default=None,
type=click.Choice(["none", "optional", "required"]),
@@ -309,6 +315,7 @@ def gather_args(
socket,
shell,
pager,
+ greetings,
verify_ssl,
prompt,
):
@@ -354,6 +361,8 @@ def gather_args(
config.enable_pager = pager
if verify_ssl is not None:
config.verify_ssl = verify_ssl
+ if greetings is not None:
+ config.greetings = greetings
return ctx
@@ -492,5 +501,6 @@ def main():
)
# print hello message
- greetings()
+ if config.greetings:
+ greetings()
repl(client, session, enter_main_time)