{"id":13726181,"url":"https://github.com/tmattio/inquire","last_synced_at":"2025-10-24T13:16:58.819Z","repository":{"id":51232220,"uuid":"239507982","full_name":"tmattio/inquire","owner":"tmattio","description":":art: Create beautiful interactive command line interface in OCaml","archived":false,"fork":false,"pushed_at":"2021-06-04T11:57:26.000Z","size":542,"stargazers_count":45,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T02:02:52.186Z","etag":null,"topics":["cli","inquire","interactive","ocaml","reason"],"latest_commit_sha":null,"homepage":"https://tmattio.github.io/inquire","language":"OCaml","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/tmattio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-10T12:36:13.000Z","updated_at":"2025-10-04T10:05:51.000Z","dependencies_parsed_at":"2022-09-10T17:00:43.307Z","dependency_job_id":null,"html_url":"https://github.com/tmattio/inquire","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/tmattio/inquire","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmattio%2Finquire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmattio%2Finquire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmattio%2Finquire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmattio%2Finquire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmattio","download_url":"https://codeload.github.com/tmattio/inquire/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmattio%2Finquire/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280800967,"owners_count":26393412,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"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":["cli","inquire","interactive","ocaml","reason"],"created_at":"2024-08-03T01:02:55.021Z","updated_at":"2025-10-24T13:16:58.761Z","avatar_url":"https://github.com/tmattio.png","language":"OCaml","readme":"# Inquire\n\n[![Actions Status](https://github.com/tmattio/inquire/workflows/CI/badge.svg)](https://github.com/tmattio/inquire/actions)\n\n🎨 Create beautiful interactive command line interface in OCaml\n\n## Installation\n\n### Using Opam\n\n```bash\nopam install inquire\n```\n\n### Using Esy\n\n```bash\nesy add @opam/inquire\n```\n\n## Usage\n\n### Confirm\n\nPrompt the user to answer the given message with \"y\" or \"n\".\n\n```ocaml\nInquire.confirm \"Are you sure?\"\n```\n\n### Raw List\n\nPrompt the user to chose a value from the given options.\n\n```ocaml\nInquire.raw_select \"What's your favorite movie?\" ~options:[ \"Choice 1\" ; \"Choice 2\" ]\n```\n\n### Password\n\nPrompt the user to enter a password that will be hidden with stars (`*`).\n\n```ocaml\nInquire.password \"Enter your password:\"\n```\n\n### Input\n\nPrompt the user to input a string.\n\n```ocaml\nInquire.input \"Enter a value:\"\n```\n\n## Limitations\n\nInquire is dead simple. The prompt implementations are ~100 line of code each and manage the terminal control flow themselves. \nThis simplicity comes at a price though:\n\n- No support for UTF8. This would in principle be relatively easy to implement with a buffer that accumulates the input bytes until it matches an UTF8 value, up to a certain number of bytes. A PR for this would be more than welcome.\n\n## Contributing\n\nTake a look at our [Contributing Guide](CONTRIBUTING.md).\n","funding_links":[],"categories":["OCaml"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmattio%2Finquire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmattio%2Finquire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmattio%2Finquire/lists"}