rename web/ to admin/, along with the web-named build and cli identifiers

This commit is contained in:
2026-08-16 00:17:58 +02:00
parent 5b3d1cd65c
commit 1e97c80f6b
136 changed files with 196 additions and 196 deletions
@@ -1,6 +1,6 @@
//! Build-time web asset indexer (milestone-8 ruling 24).
//!
//! `gen_web_assets <dist-dir> <out-dir>` reads a built web dist directory and
//! `gen_admin_assets <dist-dir> <out-dir>` reads a built web dist directory and
//! writes into `<out-dir>`:
//!
//! - `<name>.gz` next to each asset worth compressing, unless the dist already
@@ -40,7 +40,7 @@ pub fn main(init: std.process.Init) !void {
const arena = init.arena.allocator();
const io = init.io;
const args = try init.minimal.args.toSlice(arena);
if (args.len != 3) std.process.fatal("usage: gen_web_assets <dist-dir> <out-dir>", .{});
if (args.len != 3) std.process.fatal("usage: gen_admin_assets <dist-dir> <out-dir>", .{});
var dist = std.Io.Dir.cwd().openDir(io, args[1], .{ .iterate = true }) catch |err| {
std.process.fatal("cannot open dist directory '{s}': {t}", .{ args[1], err });
@@ -207,7 +207,7 @@ fn renderIndex(arena: Allocator, assets: []const Asset) ![]const u8 {
var sink: std.Io.Writer.Allocating = try .initCapacity(arena, 4096);
const w = &sink.writer;
try w.writeAll(
\\//! Generated by tools/gen_web_assets.zig. Do not edit.
\\//! Generated by tools/gen_admin_assets.zig. Do not edit.
\\
\\pub const File = struct {
\\ /// Request path, `/`-prefixed.