go-picker

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 1 Imported by: 0

README

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.

Documentation

Overview

Package main is the entry point for the CLI

Directories

Path Synopsis
Package cmd contains all CLI commands used by the application.
Package cmd contains all CLI commands used by the application.
pkg
pick
Package pick provides functionality to return a randomized subset of items from a collection
Package pick provides functionality to return a randomized subset of items from a collection

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL