From 159f549b3e07c0b86ce0a41cae7abf2ca38efd71 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 4 Jun 2025 18:33:45 +0000 Subject: Commit from GitHub Actions (Ruff) --- search.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'search.py') diff --git a/search.py b/search.py index ad81184..403a5fa 100644 --- a/search.py +++ b/search.py @@ -3,6 +3,7 @@ import sys LOG_PATH = os.path.expanduser("~/.crumb/history.org") + def search_log(query): """ Search for a given query string within the crumb history log file and print matching entries. @@ -29,6 +30,7 @@ def search_log(query): if found == 0: print("No matches found.") + if __name__ == "__main__": """ Entry point for the script. Parses command line arguments and calls the search function. -- cgit v1.2.3-70-g09d2