aboutsummaryrefslogtreecommitdiff
path: root/src/env.zig
diff options
context:
space:
mode:
authortsne <tsne.dev@outlook.com>2026-06-19 13:09:03 +0200
committertsne <tsne.dev@outlook.com>2026-06-21 08:51:45 +0200
commit5ba038c3eb07fc94fc8d6f46b451f552bfc121a4 (patch)
tree4bc57b4616943f5ef014ae2081c3c680a506b6ef /src/env.zig
parentupgrade to zig 0.16 (diff)
downloadporteur-5ba038c3eb07fc94fc8d6f46b451f552bfc121a4.tar.gz
minor bugfixes and output formattingHEADmain
Diffstat (limited to 'src/env.zig')
-rw-r--r--src/env.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/env.zig b/src/env.zig
index bb1e8bc..389890f 100644
--- a/src/env.zig
+++ b/src/env.zig
@@ -18,6 +18,7 @@ distfiles_dir: []const u8,
distfiles_history: usize,
default_category: ?[]const u8,
default_repo_branch: []const u8,
+make_conf: ?[]const u8,
editor_cmd: ?[]const u8,
_proc_env: std.process.Environ,
@@ -41,6 +42,7 @@ pub fn init(allocator: std.mem.Allocator, env: std.process.Environ, etc: []const
.distfiles_history = 1,
.default_category = null,
.default_repo_branch = "main",
+ .make_conf = null,
.editor_cmd = null,
._proc_env = env,
@@ -73,6 +75,8 @@ pub fn init(allocator: std.mem.Allocator, env: std.process.Environ, etc: []const
self.default_category = v.val;
} else if (std.mem.eql(u8, v.key, "git-branch") and v.val.len > 0) {
self.default_repo_branch = v.val;
+ } else if (std.mem.eql(u8, v.key, "make.conf") and v.val.len > 0) {
+ self.make_conf = v.val;
} else if (std.mem.eql(u8, v.key, "editor") and v.val.len > 0) {
self.editor_cmd = v.val;
} else {