td-task 0.2.7__tar.gz → 0.2.8__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.
- {td_task-0.2.7 → td_task-0.2.8}/PKG-INFO +1 -1
- {td_task-0.2.7 → td_task-0.2.8}/pyproject.toml +1 -1
- {td_task-0.2.7 → td_task-0.2.8}/src/td/CHANGELOG.md +5 -0
- {td_task-0.2.7 → td_task-0.2.8}/src/td/__main__.py +32 -0
- {td_task-0.2.7 → td_task-0.2.8}/tests/test_resize.py +1 -1
- {td_task-0.2.7 → td_task-0.2.8}/uv.lock +1 -1
- {td_task-0.2.7 → td_task-0.2.8}/.env.enc +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/.github/workflows/pages.yml +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/.github/workflows/publish.yml +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/.gitignore +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/.python-version +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/README.md +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/assets/demo.gif +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/demo.tape +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/index.html +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/src/td/__init__.py +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/src/td/backup.py +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/src/td/config.py +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/src/td/db.py +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/src/td/terminal.py +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/src/td/tui.py +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/tests/test_backup.py +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/tests/test_cli_notes.py +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/tests/test_notes.py +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/tests/test_tui_notes.py +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/tests/test_update.py +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/website/README.md +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/website/favicon.svg +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/website/main.js +0 -0
- {td_task-0.2.7 → td_task-0.2.8}/website/style.css +0 -0
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.8] - 2026-11-30
|
|
4
|
+
- Add `td tick <task_id>` CLI command to toggle task completion.
|
|
5
|
+
- Add `td lists` and `td tasks` CLI commands.
|
|
6
|
+
- Make `td -l <listname>` list tasks and notes directly in the CLI.
|
|
7
|
+
|
|
3
8
|
## [0.2.7] - 2026-11-10
|
|
4
9
|
- Raise default max tasks per list from 15 to 100, and the max tasks setting range to 3–100.
|
|
5
10
|
|
|
@@ -68,6 +68,33 @@ def main() -> None:
|
|
|
68
68
|
print("✗ Error: list name is required. Pass list name with -l <name> or --list <name>.")
|
|
69
69
|
sys.exit(1)
|
|
70
70
|
_run_list(list_name)
|
|
71
|
+
elif len(args) > 1 and args[1] in ("tick", "-tick", "--tick"):
|
|
72
|
+
if len(args) < 3:
|
|
73
|
+
print("Usage: td tick <task_id>")
|
|
74
|
+
sys.exit(1)
|
|
75
|
+
try:
|
|
76
|
+
task_id = int(args[2])
|
|
77
|
+
from . import db
|
|
78
|
+
db.toggle_done(task_id)
|
|
79
|
+
print(f"✓ Task {task_id} toggled.")
|
|
80
|
+
except ValueError:
|
|
81
|
+
print("✗ Invalid task ID")
|
|
82
|
+
sys.exit(1)
|
|
83
|
+
except Exception as e:
|
|
84
|
+
print(f"✗ Failed to toggle task: {e}")
|
|
85
|
+
sys.exit(1)
|
|
86
|
+
elif len(args) > 1 and args[1] == "lists":
|
|
87
|
+
from . import db
|
|
88
|
+
lists = db.get_all_lists()
|
|
89
|
+
for name in lists:
|
|
90
|
+
print(name)
|
|
91
|
+
elif len(args) > 1 and args[1] == "tasks":
|
|
92
|
+
if not has_list:
|
|
93
|
+
from . import db
|
|
94
|
+
lists = db.get_all_lists()
|
|
95
|
+
list_name = lists[0] if lists else "main"
|
|
96
|
+
_run_list(list_name)
|
|
97
|
+
|
|
71
98
|
elif len(args) > 1 and args[1] in ("export", "-export", "--export"):
|
|
72
99
|
_run_export(args)
|
|
73
100
|
elif len(args) > 1 and args[1] in ("import", "-import", "--import"):
|
|
@@ -83,6 +110,11 @@ def main() -> None:
|
|
|
83
110
|
db.create_list("main")
|
|
84
111
|
lists = ["main"]
|
|
85
112
|
active_list = list_name if has_list else (lists[0] if lists else "main")
|
|
113
|
+
|
|
114
|
+
if has_list and len(args) == 1:
|
|
115
|
+
_run_list(active_list)
|
|
116
|
+
return
|
|
117
|
+
|
|
86
118
|
run_main(active_list, lock_list=has_list)
|
|
87
119
|
except KeyboardInterrupt:
|
|
88
120
|
sys.exit(0)
|
|
@@ -289,7 +289,7 @@ class LiveTuiResizeTests(unittest.TestCase):
|
|
|
289
289
|
"PYTHONPATH": str(Path(__file__).resolve().parents[1] / "src"),
|
|
290
290
|
})
|
|
291
291
|
process = subprocess.Popen(
|
|
292
|
-
[sys.executable, "-m", "td"
|
|
292
|
+
[sys.executable, "-m", "td"],
|
|
293
293
|
stdin=slave, stdout=slave, stderr=slave,
|
|
294
294
|
env=environment, start_new_session=True,
|
|
295
295
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|