summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith@netflix.com>2024-03-23 19:22:06 -0700
committerAmjith Ramanujam <amjith@netflix.com>2024-03-23 19:22:06 -0700
commit0725b88358cee9ac6ab219bab498edb6bcf70bd3 (patch)
treef4e0f471070727dab1568dfcd452cb26b9f84359
parent9d5bcf0ba17fd0562309164175d7db1a54f85464 (diff)
Improve \d to show list of tables.
-rw-r--r--CHANGELOG.md8
-rw-r--r--TODO3
-rw-r--r--TODO.md6
-rw-r--r--litecli/packages/special/dbcommands.py2
4 files changed, 15 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index edee1e9..00f3b65 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,11 @@
+## 1.11.0 - TBD
+
+### Improvements
+
+* When an empty `\d` is invoked the list of tables are returned instead of an error.
+
+
+
## 1.10.1 - 2024-3-23
### Bug Fixes
diff --git a/TODO b/TODO
deleted file mode 100644
index 7c854dc..0000000
--- a/TODO
+++ /dev/null
@@ -1,3 +0,0 @@
-* [] Sort by frecency.
-* [] Add completions when an attach database command is run.
-* [] Add behave tests.
diff --git a/TODO.md b/TODO.md
new file mode 100644
index 0000000..58e2ebc
--- /dev/null
+++ b/TODO.md
@@ -0,0 +1,6 @@
+* [ ] Change to use ruff
+* [ ] Automate the release process via GH actions. [Article](https://simonwillison.net/2024/Jan/16/python-lib-pypi/)
+
+* [] Sort by frecency.
+* [] Add completions when an attach database command is run.
+* [] Add behave tests.
diff --git a/litecli/packages/special/dbcommands.py b/litecli/packages/special/dbcommands.py
index dec3507..687c9a4 100644
--- a/litecli/packages/special/dbcommands.py
+++ b/litecli/packages/special/dbcommands.py
@@ -224,7 +224,7 @@ def describe(cur, arg, **_):
arg
)
else:
- raise ArgumentMissing("Table name required.")
+ return list_tables(cur)
log.debug(query)
cur.execute(query)