DashboardcraftCraft dry-run wrappers

Craft dry-run wrappers

Category: preference
Confidence: 1.00
ID: 01a034b6-88f8-7808-8324-1f08298625ba
Project ID: e16af391-c497-4837-b681-c849a5514499
Cross-project: No
Recalled in other projects: 0
Source session: 117pES7LG4CRSwQik
Created: 2026-08-24 16:59:32
Updated: 2026-08-24 16:59:32

Content

Use Craft's centralized dry-run proxies for destructive work: getGitClient()/createGitClient() for Git, getGitHubClient() for GitHub, safeFs for writes/deletes, and safeExec/safeExecSync for other commands. Do not add per-function isDryRun() guards by default: that duplicates policy and can miss side effects. Use explicit checks only for tools with native dry-run flags, mock data, or UX optimizations such as skipping sleeps.

Move to: