Enable HostWorkingDir: true on all commands and implement position-aware default scope. Ordering matters: fix COMMANDS_DIR before enabling HostWorkingDir.
Work items (order-sensitive)
- Fix
COMMANDS_DIR in checks and checks-full first — currently ./.ddev/commands/web/<tool>, fails from non-root dirs
- Re-anchor all default scopes to
$DDEV_APPROOT and dcq-reports/ to project root
- Add
HostWorkingDir: true to every command
- Position-aware defaults: at project root with no args → scan custom dirs; elsewhere → scan cwd
- Gate default path injection on no positional paths AND not stdin mode
- Port
host-working-dir.bats; add stdin-gating tests
Acceptance criteria
Blocked by: ADRs for position-aware defaults and working directory (PRs pending)
Enable
HostWorkingDir: trueon all commands and implement position-aware default scope. Ordering matters: fixCOMMANDS_DIRbefore enablingHostWorkingDir.Work items (order-sensitive)
COMMANDS_DIRinchecksandchecks-fullfirst — currently./.ddev/commands/web/<tool>, fails from non-root dirs$DDEV_APPROOTanddcq-reports/to project rootHostWorkingDir: trueto every commandhost-working-dir.bats; add stdin-gating testsAcceptance criteria
COMMANDS_DIRfixed beforeHostWorkingDiris enabled$DDEV_APPROOTHostWorkingDir: trueon every command--stdin-pathdoes not trigger default scope injectionBlocked by: ADRs for position-aware defaults and working directory (PRs pending)