[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1116934: ITP: golang-github-thediveo-enumflag -- Typed enumeration flags (single and slice) for spf13/pflag, Go's flag drop-in package.



Package: wnpp
Severity: wishlist
Owner: Simon Josefsson <simon@josefsson.org>

* Package name    : golang-github-thediveo-enumflag
  Version         : 2.0.7-1
  Upstream Author : TheDiveO
* URL             : https://github.com/thediveo/enumflag
* License         : Apache-2.0
  Programming Lang: Go
  Description     : Typed enumeration flags (single and slice) for spf13/pflag, Go's flag drop-in package.

 enumflag/v2 is a Golang package which supplements the Golang CLI flag
 packages spf13/cobra (https://github.com/spf13/cobra) and spf13/pflag
 (https://github.com/spf13/pflag) with enumeration flags, including
 support for enumeration slices.
 .
 For instance, users can specify enum flags as --mode=foo or --mode=bar,
 where foo and bar are valid enumeration values. Other values which are
 not part of the set of allowed enumeration values cannot be set and
 raise CLI flag errors. In case of an enumeration *slice* flag users can
 specify multiple enumeration values either with a single flag --
 mode=foo,bar or multiple flag calls, such as --mode=foo --mode=bar.

Newer versions of 'opkssh' uses this library.

https://salsa.debian.org/go-team/packages/golang-github-thediveo-enumflag
https://salsa.debian.org/jas/golang-github-thediveo-enumflag/-/pipelines

/Simon

Attachment: signature.asc
Description: PGP signature


Reply to: