{"id":19396655,"url":"https://github.com/hmu332233/random-ui-picker-cli","last_synced_at":"2025-04-24T05:30:56.446Z","repository":{"id":65472167,"uuid":"379916993","full_name":"hmu332233/random-ui-picker-cli","owner":"hmu332233","description":"CLI that selects a random item with a simple UI.","archived":false,"fork":false,"pushed_at":"2024-09-12T08:07:23.000Z","size":948,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T23:13:04.348Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/random-ui-picker-cli","language":"TypeScript","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/hmu332233.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":"2021-06-24T12:26:22.000Z","updated_at":"2024-10-16T08:38:55.000Z","dependencies_parsed_at":"2024-11-10T10:38:06.041Z","dependency_job_id":"598df2d1-142a-4802-9d9c-9c7e0389ba33","html_url":"https://github.com/hmu332233/random-ui-picker-cli","commit_stats":{"total_commits":21,"total_committers":1,"mean_commits":21.0,"dds":0.0,"last_synced_commit":"decef894b76abc2b4bc4d90234e1bc97dcba84e9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmu332233%2Frandom-ui-picker-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmu332233%2Frandom-ui-picker-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmu332233%2Frandom-ui-picker-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmu332233%2Frandom-ui-picker-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hmu332233","download_url":"https://codeload.github.com/hmu332233/random-ui-picker-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249822383,"owners_count":21329960,"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":["hacktoberfest"],"created_at":"2024-11-10T10:36:48.893Z","updated_at":"2025-04-24T05:30:55.812Z","avatar_url":"https://github.com/hmu332233.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# random-ui-picker-cli\n\nA fun and interactive CLI tool that randomly selects an item with a simple UI. Perfect for making quick decisions or adding an element of chance to your choices!\n\n## Features\n\n- Easy to use command-line interface\n- Multiple themes for visual variety\n- Support for direct item input or file-based item lists\n- Extensible design for adding new themes\n\n## Installation\n\nYou can use this tool without installation via `npx`, or install it globally:\n\n```bash\nnpm install -g random-ui-picker-cli\n```\n\n## Usage\n\n### Using npx (no installation required):\n\n```bash\nnpx random-ui-picker-cli -i item1 item2 item3\nnpx random-ui-picker-cli -t basic -if items_file_path\n```\n\n### If installed globally:\n\n```bash\nrandom-ui-picker -i item1 item2 item3\nrandom-ui-picker -t basic -if items_file_path\n```\n\n### Options:\n\n```\n-t, --theme \u003ctheme\u003e     Select UI theme (default: 'basic')\n-i, --items \u003citems...\u003e  Directly input items to choose from\n-if, --items_file \u003cpath\u003e  Specify a file path containing items\n-h, --help              Display help information\n```\n\n## Themes\n\n### Basic\nA simple, clean interface for quick selections.\n\n![basic theme](./assets/images/theme.basic.gif)\n\n### Slot Machine\nAdd some excitement with a slot machine-style picker!\n\n![slot machine theme](./assets/images/theme.slot-machine.gif)\n\n## Contributing\n\nWe welcome contributions, especially new themes! Here's how you can add a new theme:\n\n1. Create a new theme component in the `src` directory. (Component props must have `PickerProps` type)\n2. Add the new component with a key value to `ThemeMap` in `src/index.tsx`.\n3. Test your theme using:\n   ```bash\n   yarn start -t [new theme name] -i item1 item2 item3\n   ```\n\nFor other contributions or bug reports, please open an issue or submit a pull request.\n\n## License\n\n[MIT License](LICENSE)\n\n## Support\n\nIf you encounter any problems or have questions, please open an issue on our GitHub repository.\n\nEnjoy making random selections with style!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmu332233%2Frandom-ui-picker-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhmu332233%2Frandom-ui-picker-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmu332233%2Frandom-ui-picker-cli/lists"}