From 9072b3f9a5c74dbf62adbc47424478314c57d0c2 Mon Sep 17 00:00:00 2001 From: "Lynn Cyrin (they/them)" Date: Wed, 18 Sep 2019 00:15:07 -0700 Subject: [PATCH 1/4] Copy appveyor changes from the V2 PR Copied from https://github.com/urfave/cli/pull/892/ --- appveyor.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 6d2dcee..1f30f3b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -6,16 +6,21 @@ image: Visual Studio 2017 clone_folder: c:\gopath\src\github.com\urfave\cli +cache: + - node_modules + environment: GOPATH: C:\gopath GOVERSION: 1.11.x + GO111MODULE: on + GOPROXY: https://proxy.golang.org install: - set PATH=%GOPATH%\bin;C:\go\bin;%PATH% - go version - go env - - go get github.com/urfave/gfmrun/... - - go get -v -t ./... + - go get github.com/urfave/gfmrun/cmd/gfmrun + - go mod vendor build_script: - go run build.go vet From d509d6b4f48884b59ef5e386ab511171300170c1 Mon Sep 17 00:00:00 2001 From: Ben Hadfield Date: Sat, 28 Sep 2019 19:03:00 +0100 Subject: [PATCH 2/4] fix typo in flag.go docstring --- flag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flag.go b/flag.go index 3c05270..1cfa1cd 100644 --- a/flag.go +++ b/flag.go @@ -86,7 +86,7 @@ type RequiredFlag interface { type DocGenerationFlag interface { Flag - // TakesValue returns true of the flag takes a value, otherwise false + // TakesValue returns true if the flag takes a value, otherwise false TakesValue() bool // GetUsage returns the usage string for the flag From e19c344a3563bbec719141e4eb8dc2ef7d81514c Mon Sep 17 00:00:00 2001 From: Felix Wong Date: Sun, 6 Oct 2019 01:58:51 -0700 Subject: [PATCH 3/4] fix zsh autocomplete --- autocomplete/zsh_autocomplete | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autocomplete/zsh_autocomplete b/autocomplete/zsh_autocomplete index 8b747ae..e4fddbe 100644 --- a/autocomplete/zsh_autocomplete +++ b/autocomplete/zsh_autocomplete @@ -1,3 +1,5 @@ +#compdef $PROG + _cli_zsh_autocomplete() { local -a opts From ca3fdc5252263f5b80b9eae023e9253fb55de0bb Mon Sep 17 00:00:00 2001 From: Adam Chalkley Date: Thu, 10 Oct 2019 12:58:50 -0500 Subject: [PATCH 4/4] README: Fix small typo in example description --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 96720b6..246dd5c 100644 --- a/README.md +++ b/README.md @@ -691,7 +691,7 @@ The code above will use the "load" string as a flag name to get the file name of a yaml file from the cli.Context. It will then use that file name to initialize the yaml input source for any flags that are defined on that command. As a note the "load" flag used would also have to be defined on the command flags in order -for this code snipped to work. +for this code snippet to work. Currently only YAML, JSON, and TOML files are supported but developers can add support for other input sources by implementing the altsrc.InputSourceContext for their