summaryrefslogtreecommitdiff
path: root/internal/askcli/command_write_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-23 07:41:07 +0200
committerPaul Buetow <paul@buetow.org>2026-03-23 07:41:07 +0200
commit77a38b42f47e8842e5c60673f9b25e3871cf8d8e (patch)
treee886cb0e4cd333c62f1fe9ab00661bacf719e611 /internal/askcli/command_write_test.go
parent987c08b9bd86f4e6afabfb3dcb0efaf98f1ccb38 (diff)
ask add: always emit UUID, never the numeric task ID
Use rc.verbose=new-uuid so taskwarrior prints "Created task <uuid>." directly on stdout. Parse the UUID from that line instead of doing a two-step numeric-ID lookup or falling back to an export call. Removes ExtractUUIDFromOutput (which could leak numeric IDs) and fetchUUIDByNumericID (the export fallback). Integration tests now get the UUID straight from ask add output without any extra calls. Also fixes TestMain_WiresDispatcher which expected "export" first in args, but list now prepends status:pending filter. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/askcli/command_write_test.go')
0 files changed, 0 insertions, 0 deletions