New package, go-mow-cli.

A framework to build command line applications in Go with most of the burden of
arguments parsing and validation placed on the framework instead of the
developer.
This commit is contained in:
bsiegert 2016-07-16 13:03:42 +00:00
parent e9024c30f0
commit 54ab5b93a6
6 changed files with 73 additions and 1 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2283 2016/07/15 19:35:01 bsiegert Exp $ # $NetBSD: Makefile,v 1.2284 2016/07/16 13:03:42 bsiegert Exp $
# #
COMMENT= Development utilities COMMENT= Development utilities
@ -294,6 +294,7 @@ SUBDIR+= gnustep-objc
SUBDIR+= gnustep-objc-lf2 SUBDIR+= gnustep-objc-lf2
SUBDIR+= go-check SUBDIR+= go-check
SUBDIR+= go-flags-svent SUBDIR+= go-flags-svent
SUBDIR+= go-mow-cli
SUBDIR+= go-nbreader SUBDIR+= go-nbreader
SUBDIR+= go-ratelimit SUBDIR+= go-ratelimit
SUBDIR+= go-review SUBDIR+= go-review

3
devel/go-mow-cli/DESCR Normal file
View file

@ -0,0 +1,3 @@
A framework to build command line applications in Go with most of the burden of
arguments parsing and validation placed on the framework instead of the
developer.

19
devel/go-mow-cli/Makefile Normal file
View file

@ -0,0 +1,19 @@
# $NetBSD: Makefile,v 1.1 2016/07/16 13:03:42 bsiegert Exp $
DISTNAME= go-mow-cli-0.0.20160221
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=jawher/}
GITHUB_PROJECT= mow.cli
GITHUB_TAG= 772320464101e904cd51198160eb4d489be9cc49
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/jawher/mow.cli
COMMENT= versatile library for building CLI applications in Go
LICENSE= mit
WRKSRC= ${WRKDIR}
GO_DIST_BASE= ${GITHUB_PROJECT}-${GITHUB_TAG}
GO_SRCPATH= github.com/jawher/mow.cli
.include "../../lang/go/go-package.mk"
.include "../../mk/bsd.pkg.mk"

28
devel/go-mow-cli/PLIST Normal file
View file

@ -0,0 +1,28 @@
@comment $NetBSD: PLIST,v 1.1 2016/07/16 13:03:42 bsiegert Exp $
gopkg/pkg/${GO_PLATFORM}/github.com/jawher/mow.cli.a
gopkg/src/github.com/jawher/mow.cli/LICENSE
gopkg/src/github.com/jawher/mow.cli/README.md
gopkg/src/github.com/jawher/mow.cli/args.go
gopkg/src/github.com/jawher/mow.cli/args_test.go
gopkg/src/github.com/jawher/mow.cli/cli.go
gopkg/src/github.com/jawher/mow.cli/cli_test.go
gopkg/src/github.com/jawher/mow.cli/commands.go
gopkg/src/github.com/jawher/mow.cli/doc.go
gopkg/src/github.com/jawher/mow.cli/examples_test.go
gopkg/src/github.com/jawher/mow.cli/flow.go
gopkg/src/github.com/jawher/mow.cli/flow_test.go
gopkg/src/github.com/jawher/mow.cli/formatter_test.go
gopkg/src/github.com/jawher/mow.cli/formatters.go
gopkg/src/github.com/jawher/mow.cli/fsm.go
gopkg/src/github.com/jawher/mow.cli/helper_test.go
gopkg/src/github.com/jawher/mow.cli/matchers.go
gopkg/src/github.com/jawher/mow.cli/matchers_test.go
gopkg/src/github.com/jawher/mow.cli/options.go
gopkg/src/github.com/jawher/mow.cli/options_test.go
gopkg/src/github.com/jawher/mow.cli/reflect.go
gopkg/src/github.com/jawher/mow.cli/reflect_test.go
gopkg/src/github.com/jawher/mow.cli/spec_n_parse_test.go
gopkg/src/github.com/jawher/mow.cli/spec_parser.go
gopkg/src/github.com/jawher/mow.cli/spec_tk.go
gopkg/src/github.com/jawher/mow.cli/spec_tk_test.go
@pkgdir bin

View file

@ -0,0 +1,15 @@
# $NetBSD: buildlink3.mk,v 1.1 2016/07/16 13:03:42 bsiegert Exp $
BUILDLINK_TREE+= go-mow-cli
.if !defined(GO_MOW_CLI_BUILDLINK3_MK)
GO_MOW_CLI_BUILDLINK3_MK:=
BUILDLINK_CONTENTS_FILTER.go-mow-cli= ${EGREP} gopkg/
BUILDLINK_DEPMETHOD.go-mow-cli?= build
BUILDLINK_API_DEPENDS.go-mow-cli+= go-mow-cli>=0.0.20160221
BUILDLINK_PKGSRCDIR.go-mow-cli?= ../../devel/go-mow-cli
.endif # GO_MOW_CLI_BUILDLINK3_MK
BUILDLINK_TREE+= -go-mow-cli

View file

@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.1 2016/07/16 13:03:42 bsiegert Exp $
SHA1 (go-mow-cli-0.0.20160221-772320464101e904cd51198160eb4d489be9cc49.tar.gz) = 81389c5cf5207686a205cf0e7be6b73481e54c7a
RMD160 (go-mow-cli-0.0.20160221-772320464101e904cd51198160eb4d489be9cc49.tar.gz) = 2a0bb7bb439bf2e877bd434a02a6923374d1e762
SHA512 (go-mow-cli-0.0.20160221-772320464101e904cd51198160eb4d489be9cc49.tar.gz) = 9590043bdd5342aaff7bc746bb0e144c64e64580e43d057e8901d918570933ca2def0b88ae89acd2fc3a371ce612aaa939fb23255f0cdd4657f925d074726268
Size (go-mow-cli-0.0.20160221-772320464101e904cd51198160eb4d489be9cc49.tar.gz) = 32881 bytes