diff options
| author | 2022-11-15 02:37:38 +0200 | |
|---|---|---|
| committer | 2022-11-15 02:37:38 +0200 | |
| commit | 3b3baf375be63acfd293b1b47a5f49aab4b06a70 (patch) | |
| tree | 102e254f6160a9a1f28dd9a51f74e93747567505 /src/main.zig | |
| parent | Update clap (diff) | |
| download | zup-3b3baf375be63acfd293b1b47a5f49aab4b06a70.tar.gz zup-3b3baf375be63acfd293b1b47a5f49aab4b06a70.tar.xz zup-3b3baf375be63acfd293b1b47a5f49aab4b06a70.zip | |
Replace my zig-curl with zelda
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig index 197a224..56b1b77 100644 --- a/src/main.zig +++ b/src/main.zig | |||
| @@ -2,6 +2,7 @@ pub const Config = @import("Config.zig"); | |||
| 2 | pub const Installation = @import("Installation.zig"); | 2 | pub const Installation = @import("Installation.zig"); |
| 3 | pub const Installations = Installation.Installations; | 3 | pub const Installations = Installation.Installations; |
| 4 | pub const SubCommand = @import("subcommand.zig").SubCommand; | 4 | pub const SubCommand = @import("subcommand.zig").SubCommand; |
| 5 | pub const http = @import("http.zig"); | ||
| 5 | 6 | ||
| 6 | pub const help = SubCommand(Help); | 7 | pub const help = SubCommand(Help); |
| 7 | pub const install = SubCommand(@import("install.zig")); | 8 | pub const install = SubCommand(@import("install.zig")); |
| @@ -12,6 +13,7 @@ pub const update = SubCommand(@import("update.zig")); | |||
| 12 | pub const version = SubCommand(Version); | 13 | pub const version = SubCommand(Version); |
| 13 | 14 | ||
| 14 | const std = @import("std"); | 15 | const std = @import("std"); |
| 16 | const zelda = @import("zelda"); | ||
| 15 | const zup_config = @import("zup-config"); | 17 | const zup_config = @import("zup-config"); |
| 16 | 18 | ||
| 17 | const ArgIterator = std.process.ArgIterator; | 19 | const ArgIterator = std.process.ArgIterator; |
| @@ -24,6 +26,9 @@ pub fn main() !void { | |||
| 24 | const allocator = gpa.allocator(); | 26 | const allocator = gpa.allocator(); |
| 25 | defer _ = gpa.deinit(); | 27 | defer _ = gpa.deinit(); |
| 26 | 28 | ||
| 29 | // TODO: Make an issue in zelda mentioning this | ||
| 30 | defer zelda.client.global_connection_cache.deinit(); | ||
| 31 | |||
| 27 | var config = try Config.init(allocator); | 32 | var config = try Config.init(allocator); |
| 28 | defer config.deinit(); | 33 | defer config.deinit(); |
| 29 | 34 | ||