krz/crumb

A local alternative to your browser's history. browser-history cli local-first privacy

Commit 159f549b3e

159f549b3e07c0b86ce0a41cae7abf2ca38efd71

parent: d4166e0398

Unsigned

github-actions <41898282+github-actions[bot]@users.noreply.github.com> · 2025-06-04 18:33 UTC

Commit from GitHub Actions (Ruff)

Layout: unified · split

search.py +2
@@ -3,6 +3,7 @@ import sys
3 3
4LOG_PATH = os.path.expanduser("~/.crumb/history.org") 4LOG_PATH = os.path.expanduser("~/.crumb/history.org")
5 5
6
6def search_log(query): 7def search_log(query):
7 """ 8 """
8 Search for a given query string within the crumb history log file and print matching entries. 9 Search for a given query string within the crumb history log file and print matching entries.
@@ -29,6 +30,7 @@ def search_log(query):
29 if found == 0: 30 if found == 0:
30 print("No matches found.") 31 print("No matches found.")
31 32
33
32if __name__ == "__main__": 34if __name__ == "__main__":
33 """ 35 """
34 Entry point for the script. Parses command line arguments and calls the search function. 36 Entry point for the script. Parses command line arguments and calls the search function.