breaking(cli): remove PJ_QUIET suppression for empty task list

This commit is contained in:
Prad Nukala committed 2026-10-05 09:15:11 -04:00
1 parent c62668af30
commit 43dfe48848
1 file changed
+1 -3
+1 -3
View File
@@ -14,8 +14,6 @@
# Usage: pj [extra args…] extra args are forwarded to the picked task
#
# Env:
# PJ_QUIET=1 suppress the "no task sources" error — the down-arrow
# bindings use this, where an empty tree is the normal case.
# PJ_STATE=FILE key bindings pass a path; pj writes `open` to it when the
# picker opens and `pj --run` writes `ran`, so the binding
# can tell "no tasks" / "cancelled" / "task printed output"
@@ -392,7 +390,7 @@ while :; do
done
if [ ${#recs[@]} -eq 0 ]; then
[ -n "${PJ_QUIET-}" ] || echo "pj: no task sources found in this tree" >&2
echo "pj: no task sources found in this tree" >&2
exit 1
fi