Skip to content

Commit

Permalink
Merge pull request #101 from WillAbides/kongplete
Browse files Browse the repository at this point in the history
update kong and use kongplete
  • Loading branch information
WillAbides authored Dec 27, 2021
2 parents ccd3dd6 + 60a9879 commit 050f1c7
Show file tree
Hide file tree
Showing 11 changed files with 88 additions and 59 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,15 @@ overrides:
Usage: bindown <command>

Flags:
--help Show context-sensitive help.
--json write json instead of yaml
--configfile=STRING file with bindown config. default is the first one of bindown.yml,
bindown.yaml, bindown.json, .bindown.yml, .bindown.yaml or .bindown.json
($BINDOWN_CONFIG_FILE)
--cache=STRING directory downloads will be cached ($BINDOWN_CACHE)
--install-completions install shell completions
-h, --help Show context-sensitive help.
--json write json instead of yaml
--configfile=STRING file with bindown config. default is the first one of bindown.yml,
bindown.yaml, bindown.json, .bindown.yml, .bindown.yaml or
.bindown.json ($BINDOWN_CONFIG_FILE)
--cache=STRING directory downloads will be cached ($BINDOWN_CACHE)

Commands:
install-completions install shell completions
version show bindown version
download download a dependency but don't extract or install it
extract download and extract a dependency but don't install it
Expand Down
41 changes: 21 additions & 20 deletions cmd/bindown/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/alecthomas/kong"
"github.com/willabides/bindown/v3"
"github.com/willabides/bindown/v3/cmd/bindown/ifaces"
"github.com/willabides/kongplete"
)

//go:generate mockgen -source ifaces/ifaces.go -destination mocks/$GOFILE -package mocks
Expand Down Expand Up @@ -40,10 +41,10 @@ var kongVars = kong.Vars{
}

var cli struct {
JSONConfig bool `kong:"name=json,help='write json instead of yaml'"`
Configfile string `kong:"type=path,help=${configfile_help},env='BINDOWN_CONFIG_FILE'"`
Cache string `kong:"type=path,help=${cache_help},env='BINDOWN_CACHE'"`
InstallCompletions kong.InstallCompletionFlag `kong:"help=${config_install_completions_help}"`
JSONConfig bool `kong:"name=json,help='write json instead of yaml'"`
Configfile string `kong:"type=path,help=${configfile_help},env='BINDOWN_CONFIG_FILE'"`
Cache string `kong:"type=path,help=${cache_help},env='BINDOWN_CACHE'"`
InstallCompletions kongplete.InstallCompletions `kong:"cmd,help=${config_install_completions_help}"`

Version versionCmd `kong:"cmd,help='show bindown version'"`
Download downloadCmd `kong:"cmd,help=${download_help}"`
Expand Down Expand Up @@ -88,12 +89,6 @@ var configLoader ifaces.ConfigLoader = defaultConfigLoader{}

func newParser(kongOptions ...kong.Option) *kong.Kong {
kongOptions = append(kongOptions,
kong.Completers{
"bin": binCompleter,
"allSystems": allSystemsCompleter,
"templateSource": templateSourceCompleter,
"system": systemCompleter,
},
kongVars,
kong.UsageOnError(),
)
Expand All @@ -108,6 +103,12 @@ func Run(args []string, kongOptions ...kong.Option) {
},
)
parser := newParser(kongOptions...)
kongplete.Complete(parser,
kongplete.WithPredictor("bin", binCompleter),
kongplete.WithPredictor("allSystems", allSystemsCompleter),
kongplete.WithPredictor("templateSource", templateSourceCompleter),
kongplete.WithPredictor("system", systemCompleter),
)

kongCtx, err := parser.Parse(args)
parser.FatalIfErrorf(err)
Expand Down Expand Up @@ -139,8 +140,8 @@ func (c *initCmd) Run() error {
}

type addChecksumsCmd struct {
Dependency []string `kong:"help=${checksums_dep_help},completer=bin"`
Systems []bindown.SystemInfo `kong:"name=system,help=${systems_help},completer=allSystems"`
Dependency []string `kong:"help=${checksums_dep_help},predictor=bin"`
Systems []bindown.SystemInfo `kong:"name=system,help=${systems_help},predictor=allSystems"`
}

func (d *addChecksumsCmd) Run(_ *kong.Context) error {
Expand All @@ -167,8 +168,8 @@ func (c fmtCmd) Run(_ *kong.Context) error {
}

type validateCmd struct {
Dependency string `kong:"required=true,arg,help=${config_validate_bin_help},completer=bin"`
Systems []bindown.SystemInfo `kong:"name=system,completer=allSystems"`
Dependency string `kong:"required=true,arg,help=${config_validate_bin_help},predictor=bin"`
Systems []bindown.SystemInfo `kong:"name=system,predictor=allSystems"`
}

func (d validateCmd) Run(ctx *kong.Context) error {
Expand All @@ -181,9 +182,9 @@ func (d validateCmd) Run(ctx *kong.Context) error {

type installCmd struct {
Force bool `kong:"help=${install_force_help}"`
Dependency string `kong:"required=true,arg,help=${download_dependency_help},completer=bin"`
Dependency string `kong:"required=true,arg,help=${download_dependency_help},predictor=bin"`
TargetFile string `kong:"type=path,name=output,type=file,help=${install_target_file_help}"`
System bindown.SystemInfo `kong:"name=system,default=${system_default},help=${system_help},completer=allSystems"`
System bindown.SystemInfo `kong:"name=system,default=${system_default},help=${system_help},predictor=allSystems"`
}

func (d *installCmd) Run(ctx *kong.Context) error {
Expand All @@ -204,8 +205,8 @@ func (d *installCmd) Run(ctx *kong.Context) error {

type downloadCmd struct {
Force bool `kong:"help=${download_force_help}"`
System bindown.SystemInfo `kong:"name=system,default=${system_default},help=${system_help},completer=allSystems"`
Dependency string `kong:"required=true,arg,help=${download_dependency_help},completer=bin"`
System bindown.SystemInfo `kong:"name=system,default=${system_default},help=${system_help},predictor=allSystems"`
Dependency string `kong:"required=true,arg,help=${download_dependency_help},predictor=bin"`
TargetFile string `kong:"name=output,help=${download_target_file_help}"`
}

Expand All @@ -226,8 +227,8 @@ func (d *downloadCmd) Run(ctx *kong.Context) error {
}

type extractCmd struct {
System bindown.SystemInfo `kong:"name=system,default=${system_default},help=${system_help},completer=allSystems"`
Dependency string `kong:"required=true,arg,help=${extract_dependency_help},completer=bin"`
System bindown.SystemInfo `kong:"name=system,default=${system_default},help=${system_help},predictor=allSystems"`
Dependency string `kong:"required=true,arg,help=${extract_dependency_help},predictor=bin"`
TargetDir string `kong:"name=output,help=${extract_target_dir_help}"`
}

Expand Down
23 changes: 13 additions & 10 deletions cmd/bindown/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"strings"

"github.com/alecthomas/kong"
"github.com/posener/complete"
"github.com/willabides/bindown/v3"
)

Expand Down Expand Up @@ -77,8 +78,8 @@ func allDependencies(cfg *bindown.ConfigFile) []string {
return dependencies
}

var templateSourceCompleter = kong.CompleterFunc(func(a kong.CompleterArgs) []string {
cfg := completionConfig(a.Completed())
var templateSourceCompleter = complete.PredictFunc(func(a complete.Args) []string {
cfg := completionConfig(a.Completed)
if cfg == nil {
return []string{}
}
Expand All @@ -87,24 +88,26 @@ var templateSourceCompleter = kong.CompleterFunc(func(a kong.CompleterArgs) []st
for src := range cfg.TemplateSources {
opts = append(opts, src)
}
return kong.CompleteSet(opts...).Options(a)
return complete.PredictSet(opts...).Predict(a)
})

var binCompleter = kong.CompleterFunc(func(a kong.CompleterArgs) []string {
cfg := completionConfig(a.Completed())
return kong.CompleteSet(allDependencies(cfg)...).Options(a)
var binCompleter = complete.PredictFunc(func(a complete.Args) []string {
cfg := completionConfig(a.Completed)
return complete.PredictSet(allDependencies(cfg)...).Predict(a)
})

var systemCompleter = kong.CompleterFunc(func(a kong.CompleterArgs) []string {
cfg := completionConfig(a.Completed())
var systemCompleter = complete.PredictFunc(func(a complete.Args) []string {
cfg := completionConfig(a.Completed)
opts := make([]string, 0, len(cfg.Systems))
for _, system := range cfg.Systems {
opts = append(opts, system.String())
}
return kong.CompleteSet(opts...).Options(a)
return complete.PredictSet(opts...).Predict(a)
})

var allSystemsCompleter = kong.CompleteSet(strings.Split(goDists, "\n")...)
var allSystemsCompleter = complete.PredictFunc(func(a complete.Args) []string {
return strings.Split(goDists, "\n")
})

// from `go tool dist list`
const goDists = `aix/ppc64
Expand Down
6 changes: 3 additions & 3 deletions cmd/bindown/completion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sort"
"testing"

"github.com/alecthomas/kong"
"github.com/posener/complete"
"github.com/stretchr/testify/require"
)

Expand Down Expand Up @@ -74,13 +74,13 @@ func Test_completionConfig(t *testing.T) {
}

func Test_binCompleter(t *testing.T) {
got := binCompleter.Options(kong.CompleterArgs{})
got := binCompleter.Predict(complete.Args{})
require.Empty(t, got)
require.NotNil(t, got)

configFile := createConfigFile(t, "ex1.yaml")
setConfigFileEnvVar(t, configFile)
got = binCompleter.Options(kong.CompleterArgs{})
got = binCompleter.Predict(complete.Args{})
sort.Strings(got)
require.Equal(t, []string{"golangci-lint", "goreleaser"}, got)
}
Expand Down
10 changes: 5 additions & 5 deletions cmd/bindown/dependency.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type dependencyCmd struct {
}

type dependencyUpdateVarCmd struct {
Dependency string `kong:"arg,completer=bin"`
Dependency string `kong:"arg,predictor=bin"`
Set map[string]string `kong:"help='add or update a var'"`
Unset []string `kong:"help='remove a var'"`
}
Expand All @@ -46,7 +46,7 @@ func (c *dependencyUpdateVarCmd) Run() error {
}

type dependencyShowConfigCmd struct {
Dependency string `kong:"arg,completer=bin"`
Dependency string `kong:"arg,predictor=bin"`
}

func (c *dependencyShowConfigCmd) Run(ctx *kong.Context) error {
Expand All @@ -67,8 +67,8 @@ func (c *dependencyShowConfigCmd) Run(ctx *kong.Context) error {
}

type dependencyInfoCmd struct {
Dependency string `kong:"arg,completer=bin"`
Systems []bindown.SystemInfo `kong:"name=system,help=${systems_help},completer=allSystems"`
Dependency string `kong:"arg,predictor=bin"`
Systems []bindown.SystemInfo `kong:"name=system,help=${systems_help},predictor=allSystems"`
Vars bool `kong:"help='include vars'"`
}

Expand Down Expand Up @@ -122,7 +122,7 @@ func (c *dependencyListCmd) Run(ctx *kong.Context) error {
}

type dependencyRemoveCmd struct {
Dependency string `kong:"arg,completer=bin"`
Dependency string `kong:"arg,predictor=bin"`
}

func (c *dependencyRemoveCmd) Run() error {
Expand Down
4 changes: 2 additions & 2 deletions cmd/bindown/supportedsystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (c *supportedSystemListCmd) Run(ctx *kong.Context) error {
}

type supportedSystemsRemoveCmd struct {
System bindown.SystemInfo `kong:"arg,completer=system,help='system to remove'"`
System bindown.SystemInfo `kong:"arg,predictor=system,help='system to remove'"`
}

func (c *supportedSystemsRemoveCmd) Run() error {
Expand All @@ -49,7 +49,7 @@ func (c *supportedSystemsRemoveCmd) Run() error {
}

type supportedSystemAddCmd struct {
System bindown.SystemInfo `kong:"arg,completer=allSystems,help='system to add'"`
System bindown.SystemInfo `kong:"arg,predictor=allSystems,help='system to add'"`
}

func (c *supportedSystemAddCmd) Run() error {
Expand Down
2 changes: 1 addition & 1 deletion cmd/bindown/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type templateCmd struct {
}

type templateUpdateVarCmd struct {
Dependency string `kong:"arg,completer=bin"`
Dependency string `kong:"arg,predictor=bin"`
Set map[string]string `kong:"help='add or update a var'"`
Unset []string `kong:"help='remove a var'"`
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/bindown/templatesource.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (c *templateSourceAddCmd) Run() error {
}

type templateSourceRemoveCmd struct {
Name string `kong:"arg,completer=templateSource"`
Name string `kong:"arg,predictor=templateSource"`
}

func (c *templateSourceRemoveCmd) Run() error {
Expand Down
14 changes: 7 additions & 7 deletions docs/clihelp.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
Usage: bindown <command>

Flags:
--help Show context-sensitive help.
--json write json instead of yaml
--configfile=STRING file with bindown config. default is the first one of bindown.yml,
bindown.yaml, bindown.json, .bindown.yml, .bindown.yaml or .bindown.json
($BINDOWN_CONFIG_FILE)
--cache=STRING directory downloads will be cached ($BINDOWN_CACHE)
--install-completions install shell completions
-h, --help Show context-sensitive help.
--json write json instead of yaml
--configfile=STRING file with bindown config. default is the first one of bindown.yml,
bindown.yaml, bindown.json, .bindown.yml, .bindown.yaml or
.bindown.json ($BINDOWN_CONFIG_FILE)
--cache=STRING directory downloads will be cached ($BINDOWN_CACHE)

Commands:
install-completions install shell completions
version show bindown version
download download a dependency but don't extract or install it
extract download and extract a dependency but don't install it
Expand Down
10 changes: 7 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.17

require (
github.com/Masterminds/semver/v3 v3.1.1
github.com/alecthomas/kong v0.2.5-0.20200316010313-509fd46c42d7
github.com/alecthomas/kong v0.2.22
github.com/golang/mock v1.6.0
github.com/google/go-cmp v0.5.5
github.com/mholt/archiver/v3 v3.5.1
Expand All @@ -18,15 +18,19 @@ require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dsnet/compress v0.0.2-0.20210315054119-f66993602bf5 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-multierror v1.0.0 // indirect
github.com/klauspost/compress v1.13.6 // indirect
github.com/klauspost/pgzip v1.2.5 // indirect
github.com/nwaples/rardecode v1.1.2 // indirect
github.com/pierrec/lz4/v4 v4.1.12 // indirect
github.com/pkg/errors v0.8.1 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/posener/complete v1.2.3 // indirect
github.com/qri-io/jsonpointer v0.1.1 // indirect
github.com/riywo/loginshell v0.0.0-20190610082906-2ed199a032f6 // indirect
github.com/riywo/loginshell v0.0.0-20200815045211-7d26008be1ab // indirect
github.com/ulikunitz/xz v0.5.10 // indirect
github.com/willabides/kongplete v0.2.1-0.20211227223349-99f9cb6f58b5 // indirect
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
)
21 changes: 21 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
github.com/Masterminds/semver/v3 v3.1.1 h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030IGemrRc=
github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs=
github.com/alecthomas/kong v0.2.2/go.mod h1:kQOmtJgV+Lb4aj+I2LEn40cbtawdWJ9Y8QLq+lElKxE=
github.com/alecthomas/kong v0.2.5-0.20200316010313-509fd46c42d7 h1:xNeqdYJyPyy7T6kyXEvpYCnA16tNGm4nCAgV2tX7O+g=
github.com/alecthomas/kong v0.2.5-0.20200316010313-509fd46c42d7/go.mod h1:8BHFeYkCGej9u0eG7Lb7Pew1n2MUt0wF/b3m/kS9Pvk=
github.com/alecthomas/kong v0.2.5 h1:ebhzNAWR9tLmqkdnzaVCvtj65aGmM1xiEZPgM5vYWJM=
github.com/alecthomas/kong v0.2.5/go.mod h1:kQOmtJgV+Lb4aj+I2LEn40cbtawdWJ9Y8QLq+lElKxE=
github.com/alecthomas/kong v0.2.22 h1:lRcQYT2/yJ+coDNA5ws0mRL0pwSqjbP/6AcRkyKhomk=
github.com/alecthomas/kong v0.2.22/go.mod h1:uzxf/HUh0tj43x1AyJROl3JT7SgsZ5m+icOv1csRhc0=
github.com/alecthomas/repr v0.0.0-20210801044451-80ca428c5142/go.mod h1:2kn6fqh/zIyPLmm3ugklbEi5hg5wS435eygvNfaDQL8=
github.com/andybalholm/brotli v1.0.1/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y=
github.com/andybalholm/brotli v1.0.4 h1:V7DdXeJtZscaqfNuAdSRuRFzuiKlHSC/Zh3zl9qY3JY=
github.com/andybalholm/brotli v1.0.4/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig=
Expand All @@ -18,6 +24,10 @@ github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA=
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
github.com/hashicorp/go-multierror v1.0.0 h1:iVjPR7a6H0tWELX5NxNe7bYopibicUzc7uPribsnS6o=
github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
github.com/klauspost/compress v1.11.4/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
github.com/klauspost/compress v1.13.6 h1:P76CopJELS0TiO2mebmnzgWaajssP/EszplttgQxcgc=
Expand All @@ -35,17 +45,24 @@ github.com/pierrec/lz4/v4 v4.1.12 h1:44l88ehTZAUGW4VlO1QC4zkilL99M6Y9MXNwEs0uzP8
github.com/pierrec/lz4/v4 v4.1.12/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/posener/complete v1.2.3 h1:NP0eAhjcjImqslEwo/1hq7gpajME0fTLTezBKDqfXqo=
github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s=
github.com/qri-io/jsonpointer v0.1.1 h1:prVZBZLL6TW5vsSB9fFHFAMBLI4b0ri5vribQlTJiBA=
github.com/qri-io/jsonpointer v0.1.1/go.mod h1:DnJPaYgiKu56EuDp8TU5wFLdZIcAnb/uH9v37ZaMV64=
github.com/qri-io/jsonschema v0.2.1 h1:NNFoKms+kut6ABPf6xiKNM5214jzxAhDBrPHCJ97Wg0=
github.com/qri-io/jsonschema v0.2.1/go.mod h1:g7DPkiOsK1xv6T/Ao5scXRkd+yTFygcANPBaaqW+VrI=
github.com/riywo/loginshell v0.0.0-20190610082906-2ed199a032f6 h1:0QWE8TiOGSB+korydW5z4hPQ5QBVqLos+M2ta4pHaY0=
github.com/riywo/loginshell v0.0.0-20190610082906-2ed199a032f6/go.mod h1:/PfPXh0EntGc3QAAyUaviy4S9tzy4Zp0e2ilq4voC6E=
github.com/riywo/loginshell v0.0.0-20200815045211-7d26008be1ab h1:ZjX6I48eZSFetPb41dHudEyVr5v953N15TsNZXlkcWY=
github.com/riywo/loginshell v0.0.0-20200815045211-7d26008be1ab/go.mod h1:/PfPXh0EntGc3QAAyUaviy4S9tzy4Zp0e2ilq4voC6E=
github.com/sergi/go-diff v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ=
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
Expand All @@ -54,6 +71,10 @@ github.com/ulikunitz/xz v0.5.8/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oW
github.com/ulikunitz/xz v0.5.9/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
github.com/ulikunitz/xz v0.5.10 h1:t92gobL9l3HE202wg3rlk19F6X+JOxl9BBrCCMYEYd8=
github.com/ulikunitz/xz v0.5.10/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
github.com/willabides/kongplete v0.2.0 h1:C6wYVn+IPyA8rAGRGLLkuxhhSQTEECX4t8u3gi+fuD0=
github.com/willabides/kongplete v0.2.0/go.mod h1:kFVw+PkQsqkV7O4tfIBo6iJ9qY94PJC8sPfMgFG5AdM=
github.com/willabides/kongplete v0.2.1-0.20211227223349-99f9cb6f58b5 h1:GjNn2GuAirNEE7nVWD7pYPPZP2SC8gN1B+G4oil5OLE=
github.com/willabides/kongplete v0.2.1-0.20211227223349-99f9cb6f58b5/go.mod h1:VPdrG6LY+tP0LMkSBuTgIQ8c6+P8wvIDHVJzDdDh9Fw=
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 h1:nIPpBwaJSVYIxUFsDv3M8ofmx9yWTog9BfvIu0q41lo=
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8/go.mod h1:HUYIGzjTL3rfEspMxjDjgmT5uz5wzYJKVo23qUhYTos=
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
Expand Down

0 comments on commit 050f1c7

Please sign in to comment.