summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith@netflix.com>2024-03-23 21:09:14 -0700
committerAmjith Ramanujam <amjith@netflix.com>2024-03-23 21:09:14 -0700
commit6c26b4243496eefa869d46b96ac480a4da857c8a (patch)
tree1efd27530bcd0fd9f62a684bd337194137040637
parent11a68b4e72f73cd498b2dafe05932a6be0868985 (diff)
Print the sqlite version at startup.random-stuff
-rw-r--r--litecli/main.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/litecli/main.py b/litecli/main.py
index 268ede2..d82f7cd 100644
--- a/litecli/main.py
+++ b/litecli/main.py
@@ -10,7 +10,7 @@ from time import time
from datetime import datetime
from io import open
from collections import namedtuple
-from sqlite3 import OperationalError
+from sqlite3 import OperationalError, sqlite_version
import shutil
from cli_helpers.tabular_output import TabularOutputFormatter
@@ -380,10 +380,8 @@ class LiteCli(object):
key_bindings = cli_bindings(self)
if not self.less_chatty:
- print("Version:", __version__)
- print("Mail: https://groups.google.com/forum/#!forum/litecli-users")
+ print(f"LiteCli: {__version__} (SQLite: {sqlite_version})")
print("GitHub: https://github.com/dbcli/litecli")
- # print("Home: https://litecli.com")
def get_message():
prompt = self.get_prompt(self.prompt_format)
@@ -819,7 +817,7 @@ class LiteCli(object):
headers,
format_name="vertical" if expanded else None,
column_types=column_types,
- **output_kwargs
+ **output_kwargs,
)
if isinstance(formatted, (text_type)):
@@ -841,7 +839,7 @@ class LiteCli(object):
headers,
format_name="vertical",
column_types=column_types,
- **output_kwargs
+ **output_kwargs,
)
if isinstance(formatted, (text_type)):
formatted = iter(formatted.splitlines())