asphaltbuffet / go-picker

A cli tool to select one to many options from a list. Also provides a package to add this functionality to your project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go-Picker

Common Changelog GitHub Release Go Reference go.mod LICENSE Build Status Go Report Card Codecov

Star this repository if you find it valuable and worth maintaining.

👁 Watch this repository to get notified about new releases, issues, etc.

Description

go-picker picks one-to-many items from a list and returns them to you. It is a convenient wrapper for randomly picking elements. There are options to force the selected items to be unique and/or perform several selections based on your criteria.

Usage

go-picker yellow red blue green --pick=2 --repeat=2 --unique=true

Build

Terminal

  • make all - execute the build pipeline with all steps.
  • make dev - faster execution of the build pipeline that skips some steps
  • make help - print help for the Make targets.

Visual Studio Code

F1Tasks: Run Build Task (Ctrl+Shift+B or ⇧⌘B) to choose a build pipeline.

Contributing

Feel free to create an issue or propose a pull request.

Follow the Code of Conduct.

About

A cli tool to select one to many options from a list. Also provides a package to add this functionality to your project.

License:MIT License


Languages

Language:Go 75.4%Language:Makefile 23.8%Language:Dockerfile 0.8%