A CLI tool to edit dinit service files with ease
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

++

iacore 5697ea78 1d75ab75

+5 -2
+2 -1
main.zig
··· 65 65 var iter = services.iterator(); 66 66 while (iter.next()) |entry| { 67 67 if (std.mem.eql(u8, entry.key_ptr.*, service_name)) { 68 - return std.posix.execvpeZ(editor, &.{ editor, entry.value_ptr.* }, @ptrCast(std.os.environ)); 68 + const command = try std.fmt.allocPrintZ(a, "{s} {s}", .{ editor, entry.value_ptr.* }); 69 + return std.posix.execveZ("/bin/sh", &.{ "sh", "-c", command }, @ptrCast(std.os.environ)); 69 70 } 70 71 } 71 72 }
+3 -1
readme.md
··· 1 - list all dinit service files 1 + Utility -- list all dinit service files 2 + 3 + Please don't have space or other weird characters inside the service file path, since it's passed to `sh -c '$EDITOR $service_file_path'`. 2 4 3 5 ``` 4 6 zig run main.zig