summaryrefslogtreecommitdiff
path: root/src/remove.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/remove.zig')
-rw-r--r--src/remove.zig6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/remove.zig b/src/remove.zig
index ad1a610..f795df7 100644
--- a/src/remove.zig
+++ b/src/remove.zig
@@ -2,7 +2,7 @@ const std = @import("std");
2const xdg = @import("xdg"); 2const xdg = @import("xdg");
3const zup = @import("zup"); 3const zup = @import("zup");
4 4
5const Allocator = std.mem.Allocator; 5const Config = zup.Config;
6const Installation = zup.Installation; 6const Installation = zup.Installation;
7 7
8pub const params = 8pub const params =
@@ -13,7 +13,9 @@ pub const description = "Removes an installed Zig version. Run `zup list -i` to
13pub const min_args = 1; 13pub const min_args = 1;
14pub const max_args = 1; 14pub const max_args = 1;
15 15
16pub fn main(comptime Result: type, allocator: Allocator, res: Result) !void { 16pub fn main(comptime Result: type, config: Config, res: Result) !void {
17 const allocator = config.allocator;
18
17 const name = res.positionals[0]; 19 const name = res.positionals[0];
18 20
19 if (!try Installation.isInstalled(allocator, name)) { 21 if (!try Installation.isInstalled(allocator, name)) {