summaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorseth <[email protected]>2024-05-30 07:00:28 -0400
committerseth <[email protected]>2024-05-30 07:19:01 -0400
commit936db5739a58ad5d01810c60e8ebebafc93f00ab (patch)
treefd8762027d465c68f8fffdcd78fccd40a1778f94 /src/main.zig
initial commit
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig
new file mode 100644
index 0000000..75e0b4b
--- /dev/null
+++ b/src/main.zig
@@ -0,0 +1,11 @@
+const std = @import("std");
+const known = @import("known-folders");
+
+pub fn main() !void {
+ const j = try known.getPath(std.heap.page_allocator, .home) orelse {
+ std.debug.print("Womp womp.\n", .{});
+ return error.CouldNotFindHome;
+ };
+
+ std.debug.print("~ is where the heart is -- or {s}.\n", .{j});
+}