{"id":17280868,"url":"https://github.com/initerworker/inquire_derive","last_synced_at":"2025-03-26T15:22:18.361Z","repository":{"id":143861841,"uuid":"556527107","full_name":"IniterWorker/inquire_derive","owner":"IniterWorker","description":"Experimental support for inquire derive","archived":false,"fork":false,"pushed_at":"2022-11-10T18:31:26.000Z","size":68,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T18:12:37.279Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/IniterWorker.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}},"created_at":"2022-10-24T02:39:16.000Z","updated_at":"2022-12-15T00:55:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"8997c8e9-5ea6-46a6-8eae-72a2a5c5f943","html_url":"https://github.com/IniterWorker/inquire_derive","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IniterWorker%2Finquire_derive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IniterWorker%2Finquire_derive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IniterWorker%2Finquire_derive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IniterWorker%2Finquire_derive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IniterWorker","download_url":"https://codeload.github.com/IniterWorker/inquire_derive/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245678911,"owners_count":20654738,"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","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":[],"created_at":"2024-10-15T09:22:15.522Z","updated_at":"2025-03-26T15:22:18.339Z","avatar_url":"https://github.com/IniterWorker.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inquire Derive\n\n---\n\nLibrary to support `inquire_derive` via `proc-macro`.\n\n## Early stage\n\n- Derive support for [inquire](https://github.com/mikaelmello/inquire) see [#supported](#supported-widgets).\n- Original feature request [inquire #65](https://github.com/mikaelmello/inquire/issues/65)\n\n## Supported Widgets\n\n* [x] __Text__\n* [x] __Select__\n* [x] __MultiSelect__\n* [x] __CustomType__\n* [x] __Editor__\n* [x] __Password__\n* [x] __Confirm__\n* [x] __DateSelect__\n* [x] __Nested__\n\n\n## Inquire Derive in action\n\n\u003cdetails\u003e\n\u003csummary\u003e\nClick to show Cargo.toml.\n\u003c/summary\u003e\n\n```toml\n[dependencies]\n\n# The inquire derive crate\ninquire = { version = \"0.5.2\" }\ninquire_derive = { git = \"https://github.com/IniterWorker/inquire_derive\", branch = \"master\" }\n```\n\n\u003c/details\u003e\n\u003cp\u003e\u003c/p\u003e\n\n```rust\nuse inquire_derive::InquireForm;\n\n#[derive(Debug, InquireForm)]\npub struct Demo {\n    #[inquire(text(\n        prompt_message = \"\\\"What's your path?\\\"\",\n        initial_value = \"\\\"/my/initial/path\\\"\",\n        placeholder_value = \"\\\"/my/placeholder/path\\\"\",\n    ))]\n    pub path: String,\n}\n\nimpl Default for Demo {\n    fn default() -\u003e Self {\n        Self {\n            path: \"/my/default/path\".to_string(),\n        }\n    }\n}\n\nfn main() {\n    let mut ex = Demo::default();\n    println!(\"{:?}\", ex.inquire_mut().unwrap());\n}\n```\n\n## Examples\n\n* __Text__: `cargo run --example text`\n* __Select__: `cargo run --example select`\n* __MultiSelect__: `cargo run --example multi_select`\n* __CustomType__: `cargo run --example custom_type`\n* __Editor__: `cargo run --example editor`\n* __Password__: `cargo run --example password`\n* __Confirm__: `cargo run --example confirm`\n* __DateSelect__: `cargo run --example date_select`\n* __Form(Nested)__: `cargo run --example form`\n\n## License\n\nSee LICENSE for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finiterworker%2Finquire_derive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finiterworker%2Finquire_derive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finiterworker%2Finquire_derive/lists"}