Commit Graph

20 Commits

Author SHA1 Message Date
59ce32aad4
Update dependencies to latest 2022-06-20 09:35:57 -04:00
Jesse Szwedko
ee0756044c
Upgrade gopkg.in/yaml to v3
Fixes vulnerability: https://github.com/advisories/GHSA-hp87-p4gw-j4gq

YAML v3 deserializes maps as map[string]interface{} so we handle this in
MapImportSource now.

Signed-off-by: Jesse Szwedko <jesse@szwedko.me>
2022-06-18 11:49:24 -07:00
813ab33ba0
Add some missing go.sum entries needed with 1.16.x 2022-05-24 08:18:55 -04:00
Akihiro Suda
a14bd76b6b
Remove GPL2 dependency introduced in v2.7.0
This commit replaces github.com/antzucaro/matchr (GPL2, introduced in v2.7.0)
with github.com/xrash/smetrics (MIT License).

Fixes issue 1404

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2022-05-24 15:27:35 +09:00
974f2d410d
Guard suggestion capability (+ dependency) with build tag 2022-05-07 15:21:00 -04:00
3d67b75be7
Merge branch 'suggestions' of ssh://github.com/saschagrunert/cli into saschagrunert-suggestions 2022-05-07 14:40:04 -04:00
adc61ca06b
Add another missing go.sum entry (?) 2022-05-01 23:18:16 -04:00
2630f2642a
Add missing go.sum entry
plus minor touchups to genflags app
2022-05-01 23:16:59 -04:00
ed0033984b
Generate flag types (again?)
Closes #1381
2022-05-01 23:02:05 -04:00
6effd9fba8
Update dependencies and go.mod spec
Closes #1322
2022-04-21 19:11:01 -04:00
4b238b8ff0
Merge branch 'master' into suggestions 2022-04-19 16:45:20 -04:00
Daniel Mil
175bb8742c
Bump yaml.v2 version to 2.2.8 (#1326)
* Bump yamlv2 version

* Update max binary size to fix security vulnerability
2022-01-24 23:51:18 -05:00
Anthony Fok
c2cf7ed6df
Bump github.com/cpuguy83/go-md2man/v2 to v2.0.1 (#1321)
Also fix test expectation for man contents: dash and underscore
are no longer escaped with backslash in go-md2man v2.0.1

See cpuguy83/go-md2man#74
2022-01-03 22:46:55 -05:00
Lucas Charles
8e9b8ccfa6 Bump gopkg.in/yaml.v2 to v2.2.3
Fixes susceptibility to billion laughs attack,
see GitLab Gemnasium advisory for details
d769b9b5f0/go/gopkg.in/yaml.v2/GMS-2019-2.yml
2020-09-18 09:16:14 -07:00
Sascha Grunert
002bde2233
Add suggestions support
The new option `app.Suggest` enables command and flag suggestions via
the jaro-winkler distance algorithm. Flags are scoped to their
appropriate commands whereas command suggestions are scoped to the
current command level.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-03-03 13:06:34 +01:00
Ajitem Sahasrabuddhe
afd0ecbbf2
Add support for Go 1.13
Drop support for Go 1.11
Use md2man v2 to avoid dependency issues when building with Go Modules
Enabled
Update TravisCI build environment images (trusty was deprecated)
Add optional Windows build
2019-09-10 06:17:39 +05:30
Sascha Grunert
487c723673
Cleanup go modules
These two dependencies are not really needed, which can be
reproduced via:

```
> export GO111MODULE=on && go mod tidy
```

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2019-08-23 10:30:11 +02:00
Sascha Grunert
40d4a25a01
Add markdown and man page docs generation methods
This adds two new methods to the `App` struct:

- `ToMarkdown`: creates a markdown documentation string
- `ToMan`: creates a man page string

Signed-off-by: Sascha Grunert <mail@saschagrunert.de>
2019-08-07 14:02:28 +02:00
Ajitem Sahasrabuddhe
58ae5eb590
move entire build system to go 2019-08-04 20:06:44 +05:30
mingrammer
9766be8d3e
get latest changes from master 2019-08-03 22:47:47 +05:30