Skip to content

Commit 886410f

Browse files
committed
Refactor Program class initialization logic
Modified the return statement in the `Program` class to call `SiteGenerator.InitAsync` without returning its result. Added a log statement to indicate successful initialization. The method now returns the result of `BakeBlakeAsync(args)` instead of the previous return value.
1 parent 0b21919 commit 886410f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Blake.CLI/Program.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,11 @@ private static async Task<int> InitBlakeAsync(string[] args)
120120

121121
var includeSampleContent = args.Contains("--includeSampleContent") || args.Contains("-s");
122122

123-
return await SiteGenerator.InitAsync(projectFile, includeSampleContent, logger);
123+
await SiteGenerator.InitAsync(projectFile, includeSampleContent, logger);
124+
125+
logger?.LogInformation("✅ Blake initialized successfully in {targetPath}", targetPath);
126+
127+
return await BakeBlakeAsync(args);
124128
}
125129

126130
private static async Task<int> BakeBlakeAsync(string[] args)

0 commit comments

Comments
 (0)