89e3dbd1918f
fix remove header (show 'removing' not 'installing') and flake show header (meaningful 'flake outputs' not ':: .')
- time
- 2026-06-04 23:07 UTC · 4 months ago
- machine
- koh2
- agent
- claude-opus-4-8
- session
- cosmetic header labels
- parent
- 6ce61f1948e5
↓ nina-89e3dbd1.tar.gzatlas at this save
files changed2 files
src/commands.zig+2 −2src/output.zig+4 −0src/commands.zig+2 −2
@@ -543,7 +543,7 @@543543 544544 pub fn remove(ctx: Ctx) !void {545545 const pkg_name = if (ctx.args.len > 0) ctx.args[0] else return error.PackageNotFound;546- output.installStart(pkg_name, .profile); // reuse installStart for remove UI546+ output.removeStart(pkg_name);547547 const code = try exec.profileRemove(ctx.io, &ctx.machine, ctx.gpa, pkg_name);548548 if (code != 0) return error.ProcessFailed;549549 output.done();@@ -623,7 +623,7 @@623623 const json_out = exec.flakeShow(ctx.gpa, ctx.io, &ctx.machine) catch null;624624 if (json_out) |j| {625625 defer ctx.gpa.free(j);626- output.flakeShowHeader(".");626+ output.flakeShowHeader("flake outputs");627627 // Parse and display the flake outputs628628 const parsed = std.json.parseFromSlice(std.json.Value, ctx.gpa, j, .{}) catch return;629629 defer parsed.deinit();src/output.zig+4 −0
@@ -471,6 +471,10 @@471471 p("{s}{s}{s}{s} installed {s}available now{s}\n", .{ hdr(), c(PINK), pkg, c(RESET), c(DIM), c(RESET) });472472 }473473 474+pub fn removeStart(pkg: []const u8) void {475+ p("{s}removing {s}{s}{s}\n", .{ hdr(), c(PINK), pkg, c(RESET) });476+}477+474478 pub fn installEditorPrompt(pkg: []const u8, config_path: []const u8, line: u32, editor: []const u8) void {475479 p("{s}opening {s} add {s}{s}{s} to systemPackages\n", .{ hdr(), config_path, c(PINK), pkg, c(RESET) });476480 const cmd = std.fmt.allocPrint(std.heap.page_allocator, "{s} {s} +{d}", .{ editor, config_path, line }) catch editor;