feat: show all tasks in directory when calling streamer

Signed-off-by: Konstantin Fickel <mail@konstantinfickel.de>
This commit is contained in:
Konstantin Fickel 2025-04-13 17:00:14 +02:00
parent e748d46c8a
commit f73c6d16cb
5 changed files with 22 additions and 6 deletions

View file

@ -1,2 +1,13 @@
def hello() -> None:
print("You got some stuff to do!")
import glob
import os
cwd = os.getcwd()
def run() -> None:
for file_name in glob.glob(f"{glob.escape(cwd)}/*.md"):
with open(file_name, "r") as file:
file_content: str = file.read()
for line_number, line in enumerate(file_content.split("\n"), 1):
if "@Task" in line and "@Done" not in line:
print(line)
print(f" {file_name}:{line_number}")