Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cmd/aq.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const zfetch = @import("zfetch");
const extras = @import("extras");
const json = @import("json");

const u = @import("./../util/index.zig");
const u = @import("./../util/funcs.zig");

//
//
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/aquila/install.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const knownfolders = @import("known-folders");
const extras = @import("extras");

const zigmod = @import("../../lib.zig");
const u = @import("./../../util/index.zig");
const u = @import("./../../util/funcs.zig");
const common = @import("./../../common.zig");

pub fn execute(self_name: []const u8, args: [][]u8) !void {
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/aquila/update.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const knownfolders = @import("known-folders");
const extras = @import("extras");

const zigmod = @import("../../lib.zig");
const u = @import("./../../util/index.zig");
const u = @import("./../../util/funcs.zig");
const common = @import("./../../common.zig");

pub fn execute(self_name: []const u8, args: [][]u8) !void {
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ci.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const std = @import("std");
const string = []const u8;

const zigmod = @import("../lib.zig");
const u = @import("./../util/index.zig");
const u = @import("./../util/funcs.zig");
const common = @import("./../common.zig");

// Inspired by:
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/fetch.zig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const ansi = @import("ansi");
const extras = @import("extras");

const zigmod = @import("../lib.zig");
const u = @import("./../util/index.zig");
const u = @import("./../util/funcs.zig");
const common = @import("./../common.zig");
const license = @import("./license.zig");

Expand Down
2 changes: 1 addition & 1 deletion src/cmd/generate.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const string = []const u8;
const extras = @import("extras");

const zigmod = @import("../lib.zig");
const u = @import("./../util/index.zig");
const u = @import("./../util/funcs.zig");
const common = @import("./../common.zig");

//
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/init.zig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const ini = @import("ini");
const time = @import("time");
const extras = @import("extras");

const u = @import("./../util/index.zig");
const u = @import("./../util/funcs.zig");

//
//
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/license.zig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const licenses = @import("licenses");
const extras = @import("extras");

const zigmod = @import("../lib.zig");
const u = @import("./../util/index.zig");
const u = @import("./../util/funcs.zig");
const common = @import("./../common.zig");

const List = std.ArrayList(zigmod.Module);
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/sum.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const std = @import("std");
const gpa = std.heap.c_allocator;

const zigmod = @import("../lib.zig");
const u = @import("./../util/index.zig");
const u = @import("./../util/funcs.zig");
const common = @import("./../common.zig");

//
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/version.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const std = @import("std");
const gpa = std.heap.c_allocator;
const builtin = @import("builtin");

const u = @import("./../util/index.zig");
const u = @import("./../util/funcs.zig");

//
//
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/zpm.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const zfetch = @import("zfetch");
const extras = @import("extras");
const json = @import("json");

const u = @import("./../util/index.zig");
const u = @import("./../util/funcs.zig");

//
//
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/zpm/add.zig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const zfetch = @import("zfetch");
const extras = @import("extras");

const zigmod = @import("../../lib.zig");
const u = @import("./../../util/index.zig");
const u = @import("./../../util/funcs.zig");
const zpm = @import("./../zpm.zig");

//
Expand Down
2 changes: 1 addition & 1 deletion src/common.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const ansi = @import("ansi");
const extras = @import("extras");

const zigmod = @import("./lib.zig");
const u = @import("./util/index.zig");
const u = @import("./util/funcs.zig");

//
//
Expand Down
2 changes: 1 addition & 1 deletion src/util/dep.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const yaml = @import("yaml");
const extras = @import("extras");

const zigmod = @import("../lib.zig");
const u = @import("index.zig");
const u = @import("funcs.zig");

//
//
Expand Down
2 changes: 1 addition & 1 deletion src/util/dep_type.zig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const std = @import("std");
const string = []const u8;

const u = @import("./index.zig");
const u = @import("./funcs.zig");

//
//
Expand Down
4 changes: 1 addition & 3 deletions src/util/funcs.zig
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ const gpa = std.heap.c_allocator;
const extras = @import("extras");
const git = @import("git");

const u = @import("index.zig");

//
//

Expand Down Expand Up @@ -56,7 +54,7 @@ pub fn file_list(alloc: std.mem.Allocator, dpath: string) ![]const string {
pub fn run_cmd_raw(alloc: std.mem.Allocator, dir: ?string, args: []const string) !std.process.Child.RunResult {
return std.process.Child.run(.{ .allocator = alloc, .cwd = dir, .argv = args, .max_output_bytes = std.math.maxInt(usize) }) catch |e| switch (e) {
error.FileNotFound => {
u.fail("\"{s}\" command not found", .{args[0]});
fail("\"{s}\" command not found", .{args[0]});
},
else => |ee| return ee,
};
Expand Down
1 change: 0 additions & 1 deletion src/util/index.zig

This file was deleted.

2 changes: 1 addition & 1 deletion src/util/modfile.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const string = []const u8;
const yaml = @import("yaml");

const zigmod = @import("../lib.zig");
const u = @import("index.zig");
const u = @import("funcs.zig");

//
//
Expand Down
2 changes: 1 addition & 1 deletion src/util/module.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const yaml = @import("yaml");
const extras = @import("extras");

const zigmod = @import("../lib.zig");
const u = @import("index.zig");
const u = @import("funcs.zig");
const common = @import("./../common.zig");

//
Expand Down
Loading