file_query_text 0.1.5__tar.gz → 0.1.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {file_query_text-0.1.5 → file_query_text-0.1.6}/PKG-INFO +1 -1
- {file_query_text-0.1.5 → file_query_text-0.1.6}/file_query_text/__init__.py +1 -1
- {file_query_text-0.1.5 → file_query_text-0.1.6}/file_query_text/cli.py +7 -0
- {file_query_text-0.1.5 → file_query_text-0.1.6}/file_query_text.egg-info/PKG-INFO +1 -1
- {file_query_text-0.1.5 → file_query_text-0.1.6}/pyproject.toml +1 -1
- {file_query_text-0.1.5 → file_query_text-0.1.6}/README.md +0 -0
- {file_query_text-0.1.5 → file_query_text-0.1.6}/file_query_text/grammar.py +0 -0
- {file_query_text-0.1.5 → file_query_text-0.1.6}/file_query_text/main.py +0 -0
- {file_query_text-0.1.5 → file_query_text-0.1.6}/file_query_text.egg-info/SOURCES.txt +0 -0
- {file_query_text-0.1.5 → file_query_text-0.1.6}/file_query_text.egg-info/dependency_links.txt +0 -0
- {file_query_text-0.1.5 → file_query_text-0.1.6}/file_query_text.egg-info/entry_points.txt +0 -0
- {file_query_text-0.1.5 → file_query_text-0.1.6}/file_query_text.egg-info/requires.txt +0 -0
- {file_query_text-0.1.5 → file_query_text-0.1.6}/file_query_text.egg-info/top_level.txt +0 -0
- {file_query_text-0.1.5 → file_query_text-0.1.6}/setup.cfg +0 -0
- {file_query_text-0.1.5 → file_query_text-0.1.6}/tests/test_main.py +0 -0
@@ -5,6 +5,7 @@ import argparse
|
|
5
5
|
from pathlib import Path
|
6
6
|
# Fix imports to work when installed as a package
|
7
7
|
from file_query_text.main import parse_query, QueryVisitor, execute_query, get_file_attributes
|
8
|
+
from file_query_text import __version__
|
8
9
|
|
9
10
|
def main():
|
10
11
|
parser = argparse.ArgumentParser(description="SQL-like queries for your filesystem")
|
@@ -30,6 +31,12 @@ def main():
|
|
30
31
|
action="store_true",
|
31
32
|
help="Show hidden files (starting with a dot)"
|
32
33
|
)
|
34
|
+
parser.add_argument(
|
35
|
+
"--version", "-v",
|
36
|
+
action="version",
|
37
|
+
version=f"file_query_text {__version__}",
|
38
|
+
help="Show the version and exit"
|
39
|
+
)
|
33
40
|
args = parser.parse_args()
|
34
41
|
|
35
42
|
# Get current working directory for the query
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{file_query_text-0.1.5 → file_query_text-0.1.6}/file_query_text.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|