{"id":13739369,"url":"https://github.com/nektro/zig-inquirer","last_synced_at":"2026-03-02T05:31:16.617Z","repository":{"id":45279911,"uuid":"390694159","full_name":"nektro/zig-inquirer","owner":"nektro","description":"A collection of utilities for prompting information from the user on the CLI","archived":false,"fork":false,"pushed_at":"2025-12-18T02:22:55.000Z","size":17,"stargazers_count":27,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-21T12:35:42.042Z","etag":null,"topics":["zig","zig-package"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nektro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"nektro"}},"created_at":"2021-07-29T10:59:26.000Z","updated_at":"2025-12-18T02:22:59.000Z","dependencies_parsed_at":"2024-04-17T04:44:16.075Z","dependency_job_id":"b3278203-fb44-49c6-91a9-43d4935f28de","html_url":"https://github.com/nektro/zig-inquirer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nektro/zig-inquirer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nektro%2Fzig-inquirer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nektro%2Fzig-inquirer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nektro%2Fzig-inquirer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nektro%2Fzig-inquirer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nektro","download_url":"https://codeload.github.com/nektro/zig-inquirer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nektro%2Fzig-inquirer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29993376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["zig","zig-package"],"created_at":"2024-08-03T04:00:33.253Z","updated_at":"2026-03-02T05:31:16.581Z","avatar_url":"https://github.com/nektro.png","language":"Zig","funding_links":["https://github.com/sponsors/nektro"],"categories":["Applications","zig"],"sub_categories":[],"readme":"# zig-inquirer\n\n![loc](https://sloc.xyz/github/nektro/zig-inquirer)\n[![license](https://img.shields.io/github/license/nektro/zig-inquirer.svg)](https://github.com/nektro/zig-inquirer/blob/master/LICENSE)\n[![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro)\n[![Zig](https://img.shields.io/badge/Zig-0.14-f7a41d)](https://ziglang.org/)\n[![Zigmod](https://img.shields.io/badge/Zigmod-latest-f7a41d)](https://github.com/nektro/zigmod)\n\nA collection of utilities for prompting information from the user on the CLI\n\nAdapted from https://github.com/SBoudrias/Inquirer.js\n\n## Run example\n\n```\nzig build run\n```\n\n## Screenshots\n\n![image](https://user-images.githubusercontent.com/5464072/127479686-fda8f860-a705-4fd6-9768-a3e1f53a6bc7.png)\n\n## Usage\n\n- `pub fn answer(writer, reader, comptime prompt: []const u8, value: []const u8) []const u8`\n    - Prints just the done string.\n- `pub fn forEnum(writer, reader, comptime prompt: []const u8, alloc: *std.mem.Allocator, comptime options: enum, default: ?options) !options`\n    - Accepts an enum and prompts the user to pick on of the fields.\n- `pub fn forString(writer, reader, comptime prompt: []const u8, alloc: *std.mem.Allocator, default: ?[]const u8) ![]const u8`\n    - Base function, asks prompt and returns non-empty answer.\n- `pub fn forConfirm(writer, reader, comptime prompt: []const u8, alloc: *std.mem.Allocator) !bool`\n    - Calls `forEnum` with `y/n`\n\n## TODO\n\n- number (current implementation causes compiler crash)\n- list with strings\n- string password\n- long list with autocomplete\n- date\n- time\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnektro%2Fzig-inquirer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnektro%2Fzig-inquirer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnektro%2Fzig-inquirer/lists"}