fix: quote config path in output for copy-paste

Paths with spaces (like macOS Application Support) can now be
copied directly from the output.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Daniel SamsonandClaude Opus 4.5 committed 2026-01-22 10:26:07 +00:00
1 parent fc80a044f0
commit 5a213788c7
1 file changed
+2 -2
@@ -37,7 +37,7 @@ public class ConfigInitCommand extends BaseCommand {
: ConfigDefaults.getUserConfigPath();
if (Files.exists(targetPath) && !force) {
outputError("Configuration file already exists: " + targetPath);
outputError("Configuration file already exists: \"" + targetPath + "\"");
outputError("Use --force to overwrite");
return EXIT_ERROR;
}
@@ -52,7 +52,7 @@ public class ConfigInitCommand extends BaseCommand {
String content = generateDefaultConfig();
Files.writeString(targetPath, content);
getOut().println("Configuration file created: " + targetPath);
getOut().println("Configuration file created: \"" + targetPath + "\"");
return EXIT_SUCCESS;
} catch (IOException e) {