config: flush autogenerated config template

#13774

Flush the buffered writer after writing the template so newly created
configuration files contain the expected guidance instead of being empty.
This commit is contained in:
Steven
2026-08-13 12:50:32 +02:00
parent d2c70a8c7b
commit 98b828a023

View File

@@ -4121,6 +4121,7 @@ fn writeConfigTemplate(path: []const u8) !void {
@embedFile("./config-template"),
.{ .path = path },
);
try writer.flush();
}
/// Load configurations from the default configuration files. The default