Watch
qp watch reruns a task or guard whenever matching files change.
It is useful for fast local feedback loops while editing code.
Basic Usage
Watch a task:
qp watch checkWatch the default guard:
qp watch guardWatch a named guard:
qp watch guard:ciCustom Watch Paths
By default, watch paths come from watch.paths in config, or . if none are set.
Override from CLI with repeated --path:
qp watch check --path cmd --path internalWatch Configuration
watch:
debounce_ms: 500
paths:
- cmd
- internal
- qp.yamldebounce_msprevents excessive re-runs during rapid file writes.pathsdefines default monitored paths forqp watch.
Unsafe Targets
If watched target includes unsafe tasks:
qp watch deploy --allow-unsafeUse this carefully. Most teams keep watch loops on safe/idempotent tasks.
Typical Workflow
qp watch check --path internal/features --path cmd/qpAs you edit files:
- watch triggers
- task/guard reruns with no-cache behavior
- pass/fail feedback appears immediately
Practical Patterns
qp watch checkwhile implementing featuresqp watch guard:cibefore opening a PR- narrow
--pathto current subsystem for faster feedback
Next Step
For shell completion setup across terminals, continue to Shell Completions.