{"id":15067681,"url":"https://github.com/c1m50c/catch-input","last_synced_at":"2026-02-15T04:32:47.138Z","repository":{"id":57407523,"uuid":"479892125","full_name":"c1m50c/catch-input","owner":"c1m50c","description":"Rust library implementing an easy to use macro that gets input from the console.","archived":false,"fork":false,"pushed_at":"2022-04-11T03:13:55.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-27T09:37:20.653Z","etag":null,"topics":["catch-input","cli","console","crates","crates-io","get-input","input","rust","rustlang","shell","terminal"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/catch-input","language":"Rust","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/c1m50c.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}},"created_at":"2022-04-10T02:21:15.000Z","updated_at":"2022-04-11T05:25:40.000Z","dependencies_parsed_at":"2022-09-26T17:10:47.732Z","dependency_job_id":null,"html_url":"https://github.com/c1m50c/catch-input","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/c1m50c/catch-input","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c1m50c%2Fcatch-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c1m50c%2Fcatch-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c1m50c%2Fcatch-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c1m50c%2Fcatch-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c1m50c","download_url":"https://codeload.github.com/c1m50c/catch-input/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c1m50c%2Fcatch-input/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29469267,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T04:31:33.243Z","status":"ssl_error","status_checked_at":"2026-02-15T04:30:38.729Z","response_time":118,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["catch-input","cli","console","crates","crates-io","get-input","input","rust","rustlang","shell","terminal"],"created_at":"2024-09-25T01:25:50.220Z","updated_at":"2026-02-15T04:32:47.117Z","avatar_url":"https://github.com/c1m50c.png","language":"Rust","readme":"# **catch-input**\n\n![Crates.io Version](https://img.shields.io/crates/v/catch-input?color=orange\u0026style=for-the-badge)\n![Crates.io License](https://img.shields.io/crates/l/catch-input?style=for-the-badge)\n![Lines of Code](https://img.shields.io/tokei/lines/github/c1m50c/catch-input?style=for-the-badge)\n\nRust library implementing a macro for retrieving user input from the console.\n\n\n## **Example**\n```rust\nuse catch_input::input;\n\nfn main() {\n    let a = input!(\"PromptA =\u003e \");\n    let b = input!(|| { print!(\"PromptB =\u003e \") });\n    let c = input!((String::from(\"PromptC =\u003e \")));\n\n    assert!(a, String::from(\"Catch\"));\n    assert!(b, String::from(\"Input\"));\n    assert!(c, String::from(\"Crate\"));\n\n    println!(\"\u003e\u003e {} : {} : {}\", a, b, c);\n}\n```\n\n```bash\n$ cargo run\n...\n\nPromptA =\u003e Catch\nPromptB =\u003e Input\nPromptC =\u003e Crate\n\u003e\u003e Catch : Input : Crate\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc1m50c%2Fcatch-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc1m50c%2Fcatch-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc1m50c%2Fcatch-input/lists"}