Repository navigation
refactor: share small helpers and the --when read-back verdict - #433
Merged
Merged
Conversation
Use TaskType.String for the task/project word, add Status.Closed, taskUUIDs, thingsCmd and a reason filter for import errors, and fold the four AppleScript status scripts into setStatus, which now quotes the uuid. add and import judge a new item's --when with one whenCheck.verdict, and misfiledError is built by newMisfiled. singleLine in the agent brief now folds every line break oneLine does, so a title with a bare \r or a Unicode separator cannot break the Markdown.
ryanlewis
force-pushed
the
refactor/cmd-dedupe
branch
from
October 9, 2026 23:16
b365951 to
3bd5e0c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Post-v0.10.0 cleanup of small repeated helpers in cmd/things and internal.
model.TaskType.String().kindWord,taskKindandimportCreate.kindare gone, along with three inline copies.model.Status.Closed()replaces the four "completed or cancelled" checks.taskUUIDsfor the uuid-list loops,thingsCmdforthingsplus the global flags, andwithReason/detailLinesfor the import error's per-reason sections.importCreatesreads the payload'stypeonce.setStatus, which quotes the uuid withappleScriptString.--whenwith onewhenCheck.verdict, so the two read-backs cannot drift apart again (7e44e33, 5b4262d).newMisfiledbuildsmisfiledErrorfor both add and edit.The only behaviour change is deliberate: the agent brief's
singleLinenow folds every line breakoneLinedoes, not just\nand\r\n, so a title with a bare\r, a tab or a Unicode line separator cannot break the Markdown. A new test covers it.make testandmake lintpass.