A collection of utilities for prompting information from the user on the CLI
Adapted from https://github.com/SBoudrias/Inquirer.js
zigmod aq add 1/nektro/inquirer
zig build run
pub fn answer(writer, reader, comptime prompt: []const u8, value: []const u8) []const u8
pub fn forEnum(writer, reader, comptime prompt: []const u8, alloc: *std.mem.Allocator, comptime options: enum, default: ?options) !options
pub fn forString(writer, reader, comptime prompt: []const u8, alloc: *std.mem.Allocator, default: ?[]const u8) ![]const u8
pub fn forConfirm(writer, reader, comptime prompt: []const u8, alloc: *std.mem.Allocator) !bool
forEnum
with y/n
MIT