Import go-kong as wip/go-kong version 0.2.6

Kong aims to support arbitrarily complex command-line structures with
as little developer effort as possible.

To achieve that, command-lines are expressed as Go types, with the
structure and tags directing how the command line is mapped onto the
struct.
This commit is contained in:
nikita 2020-04-26 19:38:07 +02:00
parent e4f0234562
commit a356b8c2cc
5 changed files with 105 additions and 0 deletions

6
go-kong/DESCR Normal file
View File

@ -0,0 +1,6 @@
Kong aims to support arbitrarily complex command-line structures with
as little developer effort as possible.
To achieve that, command-lines are expressed as Go types, with the
structure and tags directing how the command line is mapped onto the
struct.

20
go-kong/Makefile Normal file
View File

@ -0,0 +1,20 @@
# $NetBSD$
DISTNAME= kong-0.2.6
PKGNAME= go-${DISTNAME}
MASTER_SITES= ${MASTER_SITE_GITHUB:=alecthomas/}
CATEGORIES= devel
GITHUB_PROJECT= kong
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= nikita@NetBSD.org
HOMEPAGE= https://github.com/alecthomas/kong/
COMMENT= Command-line parser for Go
LICENSE= mit
GO_DIST_BASE= ${DISTNAME}
GO_SRCPATH= github.com/alecthomas/kong
.include "../../devel/go-errors/buildlink3.mk"
.include "../../lang/go/go-package.mk"
.include "../../mk/bsd.pkg.mk"

56
go-kong/PLIST Normal file
View File

@ -0,0 +1,56 @@
@comment $NetBSD$
gopkg/pkg/${GO_PLATFORM}/github.com/alecthomas/kong.a
gopkg/src/github.com/alecthomas/kong/COPYING
gopkg/src/github.com/alecthomas/kong/README.md
gopkg/src/github.com/alecthomas/kong/_examples/docker/README.md
gopkg/src/github.com/alecthomas/kong/_examples/docker/commands.go
gopkg/src/github.com/alecthomas/kong/_examples/docker/main.go
gopkg/src/github.com/alecthomas/kong/_examples/server/README.md
gopkg/src/github.com/alecthomas/kong/_examples/server/console.go
gopkg/src/github.com/alecthomas/kong/_examples/server/go.mod
gopkg/src/github.com/alecthomas/kong/_examples/server/go.sum
gopkg/src/github.com/alecthomas/kong/_examples/server/main.go
gopkg/src/github.com/alecthomas/kong/_examples/server/server_rsa_key
gopkg/src/github.com/alecthomas/kong/_examples/server/server_rsa_key.pub
gopkg/src/github.com/alecthomas/kong/_examples/shell/main.go
gopkg/src/github.com/alecthomas/kong/build.go
gopkg/src/github.com/alecthomas/kong/callbacks.go
gopkg/src/github.com/alecthomas/kong/camelcase.go
gopkg/src/github.com/alecthomas/kong/config_test.go
gopkg/src/github.com/alecthomas/kong/context.go
gopkg/src/github.com/alecthomas/kong/defaults.go
gopkg/src/github.com/alecthomas/kong/defaults_test.go
gopkg/src/github.com/alecthomas/kong/doc.go
gopkg/src/github.com/alecthomas/kong/env.go
gopkg/src/github.com/alecthomas/kong/error.go
gopkg/src/github.com/alecthomas/kong/global.go
gopkg/src/github.com/alecthomas/kong/global_test.go
gopkg/src/github.com/alecthomas/kong/go.mod
gopkg/src/github.com/alecthomas/kong/go.sum
gopkg/src/github.com/alecthomas/kong/guesswidth.go
gopkg/src/github.com/alecthomas/kong/guesswidth_unix.go
gopkg/src/github.com/alecthomas/kong/help.go
gopkg/src/github.com/alecthomas/kong/help_test.go
gopkg/src/github.com/alecthomas/kong/hooks.go
gopkg/src/github.com/alecthomas/kong/interpolate.go
gopkg/src/github.com/alecthomas/kong/interpolate_test.go
gopkg/src/github.com/alecthomas/kong/kong.go
gopkg/src/github.com/alecthomas/kong/kong.png
gopkg/src/github.com/alecthomas/kong/kong.sketch
gopkg/src/github.com/alecthomas/kong/kong_test.go
gopkg/src/github.com/alecthomas/kong/levenshtein.go
gopkg/src/github.com/alecthomas/kong/mapper.go
gopkg/src/github.com/alecthomas/kong/mapper_test.go
gopkg/src/github.com/alecthomas/kong/model.go
gopkg/src/github.com/alecthomas/kong/model_test.go
gopkg/src/github.com/alecthomas/kong/options.go
gopkg/src/github.com/alecthomas/kong/options_test.go
gopkg/src/github.com/alecthomas/kong/resolver.go
gopkg/src/github.com/alecthomas/kong/resolver_test.go
gopkg/src/github.com/alecthomas/kong/scanner.go
gopkg/src/github.com/alecthomas/kong/scanner_test.go
gopkg/src/github.com/alecthomas/kong/tag.go
gopkg/src/github.com/alecthomas/kong/tag_test.go
gopkg/src/github.com/alecthomas/kong/util.go
gopkg/src/github.com/alecthomas/kong/util_test.go
gopkg/src/github.com/alecthomas/kong/visit.go

17
go-kong/buildlink3.mk Normal file
View File

@ -0,0 +1,17 @@
# $NetBSD$
BUILDLINK_TREE+= go-kong
.if !defined(GO_KONG_BUILDLINK3_MK)
GO_KONG_BUILDLINK3_MK:=
BUILDLINK_CONTENTS_FILTER.go-kong= ${EGREP} gopkg/
BUILDLINK_DEPMETHOD.go-kong?= build
BUILDLINK_API_DEPENDS.go-kong+= go-kong>=0.2.6
BUILDLINK_PKGSRCDIR.go-kong?= ../../wip/go-kong
.include "../../devel/go-errors/buildlink3.mk"
.endif # GO_KONG_BUILDLINK3_MK
BUILDLINK_TREE+= -go-kong

6
go-kong/distinfo Normal file
View File

@ -0,0 +1,6 @@
$NetBSD$
SHA1 (kong-0.2.6.tar.gz) = 86d0142ca6d384d463b9fc78c273b2d5551b4c23
RMD160 (kong-0.2.6.tar.gz) = 6241847221bf21b72042a8939e4bedc99b152e7d
SHA512 (kong-0.2.6.tar.gz) = f760ec89ea3d190be8fbc21011e4aa278e15a34a67b2baf433088646b703ab90f834dbf5d34d73c164fc9aa5d179d557701a6bdcf65053e63fc19eafd19a22c6
Size (kong-0.2.6.tar.gz) = 279873 bytes