A 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!
- Easy to use command-line interface
- Multiple themes for visual variety
- Support for direct item input or file-based item lists
- Extensible design for adding new themes
You can use this tool without installation via npx
, or install it globally:
npm install -g random-ui-picker-cli
npx random-ui-picker-cli -i item1 item2 item3
npx random-ui-picker-cli -t basic -if items_file_path
random-ui-picker -i item1 item2 item3
random-ui-picker -t basic -if items_file_path
-t, --theme <theme> Select UI theme (default: 'basic')
-i, --items <items...> Directly input items to choose from
-if, --items_file <path> Specify a file path containing items
-h, --help Display help information
A simple, clean interface for quick selections.
Add some excitement with a slot machine-style picker!
We welcome contributions, especially new themes! Here's how you can add a new theme:
- Create a new theme component in the
src
directory. (Component props must havePickerProps
type) - Add the new component with a key value to
ThemeMap
insrc/index.tsx
. - Test your theme using:
yarn start -t [new theme name] -i item1 item2 item3
For other contributions or bug reports, please open an issue or submit a pull request.
If you encounter any problems or have questions, please open an issue on our GitHub repository.
Enjoy making random selections with style!