Background
Surfaced during review of #26 (PR #26, cubic-dev-ai).
All list commands print a plain-text No ... found message (via chalk.yellow) when the result set is empty, ignoring the global --format option. For machine consumers using --format json or --format toon, an empty result should emit a valid empty payload (e.g. { "dependencies": [] }) rather than human-readable text.
Scope (cross-cutting)
Affects every list command consistently:
task list
project list
section list
task subtask list
task dependency list
task dependent list
Proposal
When the result is empty:
plain format → keep the current No ... found message
json / toon → emit the empty collection through formatOutput
This was intentionally deferred from #26 to avoid changing only the new commands and creating inconsistency with the existing CLI convention.
Acceptance
Background
Surfaced during review of #26 (PR #26, cubic-dev-ai).
All list commands print a plain-text
No ... foundmessage (viachalk.yellow) when the result set is empty, ignoring the global--formatoption. For machine consumers using--format jsonor--format toon, an empty result should emit a valid empty payload (e.g.{ "dependencies": [] }) rather than human-readable text.Scope (cross-cutting)
Affects every list command consistently:
task listproject listsection listtask subtask listtask dependency listtask dependent listProposal
When the result is empty:
plainformat → keep the currentNo ... foundmessagejson/toon→ emit the empty collection throughformatOutputThis was intentionally deferred from #26 to avoid changing only the new commands and creating inconsistency with the existing CLI convention.
Acceptance
--formatacross all list commands