fix(setup): honor config roots and display terminal dry-run plans
Normalize empty XDG config homes once for configuration writers and registration readers. Render the resolved plan for terminal dry runs while preserving structured output. Cover registration placement and a real PTY dry run, including absence of configuration writes.
This commit is contained in:
@@ -82,6 +82,13 @@ export const renderSetupProgress = (event: SetupProgressEvent): void => {
|
||||
writeLine(`${symbol} ${event.label}${suffix}`);
|
||||
};
|
||||
|
||||
/** Show the resolved dry-run plan to a human at an interactive terminal. */
|
||||
export const renderSetupDryRun = (actions: readonly SetupAction[]): void => {
|
||||
intro("REA setup plan", promptStreams);
|
||||
renderPreflight(actions);
|
||||
outro("Dry run complete. No changes were made.", promptStreams);
|
||||
};
|
||||
|
||||
/** Finish an interactive setup journey without exposing the full doctor catalog. */
|
||||
export const renderInteractiveSetupResult = (
|
||||
result: SetupResult,
|
||||
|
||||
Reference in New Issue
Block a user