https://github.com/omnia-core/shuffle
A CLI tool to randomly shuffle and group team members into teams. Simple, fast, and easy to use.
https://github.com/omnia-core/shuffle
cli golang open-source random shuffle team-generator
Last synced: 5 months ago
JSON representation
A CLI tool to randomly shuffle and group team members into teams. Simple, fast, and easy to use.
- Host: GitHub
- URL: https://github.com/omnia-core/shuffle
- Owner: omnia-core
- License: mit
- Created: 2024-11-14T12:05:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-16T08:14:27.000Z (over 1 year ago)
- Last Synced: 2024-11-16T09:19:25.694Z (over 1 year ago)
- Topics: cli, golang, open-source, random, shuffle, team-generator
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Shuffle: Random Team Generator π
`shuffle` is a command-line tool to shuffle and randomly distribute team members into teams. You can specify names directly or load them from a file. Itβs perfect for team assignments, random grouping, or just having fun with lists of names.
---
## Installation
To install the latest version of `shuffle`, run the following command:
```bash
go install github.com/omnia-core/shuffle/cmd/shuffle@latest
```
---
## Usage
### About
Shuffle a list of team members into random groups.
### Usage
`shuffle [flags]`
### Flags
- **`-n, --names`**
**Type**: `string`
Description: List of names separated by commas.
Example: `"Alice,Bob,Charlie,David,Eve"`
- **`-f, --file`**
**Type**: `string`
Description: File containing a list of names, one name per line.
- **`-t, --teams`**
**Type**: `int`
Description: Number of teams to create.
- **`-s, --size`**
**Type**: `int`
Description: Size of each team.
### Note
Only **one** of the flags `-n` or `-f` should be provided at a time.
---
## Example
Shuffling names and creating 2 teams of size 2:
```bash
shuffle -n "Alice,Bob,Charlie,David,Eve" -t 2 -s 2
```
### Output:
```
Team 1: [Eve Alice]
Team 2: [Bob Charlie]
```
Shuffling names from a file and creating 5 teams of size 4:
```bash
shuffle -f names.txt -t 2 -s 2
```
### Output:
```
Team 1: [Rachel Quinn Ivy Mia]
Team 2: [Jack Alice Olivia Tina]
Team 3: [Eve Liam Steve Hank]
Team 4: [Diana Frank Paul Karen]
Team 5: [Charlie Grace Bob Noah]
```
---
## License
This project is licensed under the MIT License.
---
## Contributing
Contributions are welcome! Feel free to submit a pull request or open an issue for feature requests or bugs.
---
## Author
Created by [omnia-core](https://github.com/omnia-core).