authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-03 21:53:05 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-03 21:53:05 -07:00
log04fa58bb653abc5e42dd03dbf669b099ba6eff7f
tree823576a040f3552a839bbfa0a88c25743345eddd
parent3270255ea4c6d919853527e6a73baecfdee6867d
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

update to zig 0.16.0


2 files changed, 2 insertions(+), 2 deletions(-)

README.md+1-1
...@@ -3,7 +3,7 @@...@@ -3,7 +3,7 @@
3![loc](https://sloc.xyz/github/nektro/zig-inquirer)3![loc](https://sloc.xyz/github/nektro/zig-inquirer)
4[![license](https://img.shields.io/github/license/nektro/zig-inquirer.svg)](https://github.com/nektro/zig-inquirer/blob/master/LICENSE)4[![license](https://img.shields.io/github/license/nektro/zig-inquirer.svg)](https://github.com/nektro/zig-inquirer/blob/master/LICENSE)
5[![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro)5[![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro)
6[![Zig](https://img.shields.io/badge/Zig-0.14-f7a41d)](https://ziglang.org/)6[![Zig](https://img.shields.io/badge/Zig-0.16-f7a41d)](https://ziglang.org/)
7[![Zigmod](https://img.shields.io/badge/Zigmod-latest-f7a41d)](https://github.com/nektro/zigmod)7[![Zigmod](https://img.shields.io/badge/Zigmod-latest-f7a41d)](https://github.com/nektro/zigmod)
88
9A collection of utilities for prompting information from the user on the CLI9A collection of utilities for prompting information from the user on the CLI
src/lib.zig+1-1
...@@ -19,7 +19,7 @@ fn doprompt(out: anytype, in: anytype, alloc: std.mem.Allocator, default: ?[]con...@@ -19,7 +19,7 @@ fn doprompt(out: anytype, in: anytype, alloc: std.mem.Allocator, default: ?[]con
19 while (true) : (n += 1) {19 while (true) : (n += 1) {
20 try out.print(comptime ansi.color.Faint("> "), .{});20 try out.print(comptime ansi.color.Faint("> "), .{});
21 var input: []const u8 = try in.readUntilDelimiterAlloc(alloc, '\n', 1024);21 var input: []const u8 = try in.readUntilDelimiterAlloc(alloc, '\n', 1024);
22 input = std.mem.trimRight(u8, input, "\r\n");22 input = std.mem.trimEnd(u8, input, "\r\n");
2323
24 if (input.len == 0) if (default) |d| {24 if (input.len == 0) if (default) |d| {
25 value = d;25 value = d;