Mostyn Bramley-Moore
cdc1f6e07c
fixup! Report the source of a value when we cannot parse it
...
move bool to the end of the return arguments
remove "from " prefix in the source/fromWhere description
remove TODO notes from functions that don't currently perform error checking
2020-11-07 14:05:39 +01:00
Mostyn Bramley-Moore
500d6b04e6
Report the source of a value when we cannot parse it
...
If you allow a flag to be set from environment variables or files and
a parse error occurs from one of them, it is very useful for the error
message to mention where the value came from.
Without this, it can be difficult to notice an error caused by an
unexpected environment variable being set.
Implements #1167 .
2020-11-03 23:57:00 +01:00
Ajitem Sahasrabuddhe
ec731febcc
Merge pull request #1200 from urfave/add-support-for-go-115
...
Add Support for Go 1.15
2020-11-03 16:25:03 +05:30
Alexander Frolov
e40b83a394
use Name as default to HelpName
2020-11-03 13:22:01 +03:00
Ajitem Sahasrabuddhe
09ac54c2f9
Merge pull request #1175 from imle/imle/add-better-multi-line-description-formatting
...
Added template functions for multi-line Description formatting.
2020-11-01 14:29:08 +05:30
Robert Liebowitz
a99b68f006
Merge pull request #1194 from igorrius/extend-altscr
...
#1193 Expose constructor of MapInputSource type
2020-10-31 11:58:16 -04:00
Robert Liebowitz
5fed9f16be
Merge pull request #1188 from theoretick/bump-yaml-to-v2.2.3
...
Bump gopkg.in/yaml.v2 to v2.2.3
2020-10-31 11:57:40 -04:00
Robert Liebowitz
d89733ea65
Merge pull request #1183 from knqyf263/feat/subcommand_help_and_exit
...
feat(help): add ShowSubcommandHelpAndExit
2020-10-31 11:57:12 -04:00
Robert Liebowitz
3629eb8550
Merge pull request #1139 from kirinnee/master
...
Added manual and script for PowerShell autocomplete
2020-10-31 11:56:33 -04:00
Robert Liebowitz
3be15f7525
Merge pull request #1198 from ErinCall/paths-take-files
...
Support PathFlag.TakesFile in fish completion
2020-10-31 11:54:41 -04:00
Ajitem Sahasrabuddhe
06e570991c
Reduce desiredMinBinarySize
...
Updating the Go version has also optimized the binary size, so the desiredMinBinarySize is being updated to be 1.9
2020-10-31 00:14:08 +05:30
Ajitem Sahasrabuddhe
2a5a092888
Add Support for Go 1.15
...
And also drop support for Go 1.12 in line with Go's Release Policy https://golang.org/doc/devel/release.html#policy
2020-10-31 00:08:57 +05:30
Erin Call
5c8d915be7
Revert "Refactor fishAddFileFlag for better flexibility [ #1156 ]"
...
This reverts commit fcce511478
.
2020-10-22 14:22:01 -07:00
Erin Call
c3263d495e
Merge branch 'master' into paths-take-files
2020-10-22 08:57:35 -07:00
Igor Artasevych
7f005015c8
Update altsrc/map_input_source.go
...
Co-authored-by: Robert Liebowitz <rliebz@gmail.com>
2020-10-22 10:00:45 +03:00
lynn (they)
e062e733d8
Merge pull request #1173 from zemzale/fix-documentation
...
Fix v1 aliases syntax in v2 docs
2020-10-21 20:18:45 -07:00
Robert Liebowitz
30bb6982f2
Merge pull request #1191 from stellirin/master
...
feature: Add a App.Reader that defaults to os.Stdin
2020-10-21 21:49:32 -04:00
Erin Call
fcce511478
Refactor fishAddFileFlag for better flexibility [ #1156 ]
...
Performing reflection on the given flag ensures that fishAddFileFlag
will behave correctly if any flag types get a TakesFile field in the
future.
2020-10-13 13:00:19 -07:00
Erin Call
0d11bd55f5
Merge remote-tracking branch 'origin/master' into paths-take-files
2020-10-13 11:33:31 -07:00
Igor Artasevych
27a8625ccd
#1193 Expose constructor of MapInputSource type
2020-10-08 18:38:59 +03:00
Sascha Grunert
cd82784a53
Merge pull request #1192 from Charliekenney23/fix-typo
...
fix grammatical error
2020-10-08 09:19:23 +02:00
Charles Kenney
e5407cccf7
fix grammatical error
2020-10-06 22:24:56 -04:00
Adam Farden
342ce5d654
feature: Add a App.Reader that defaults to os.Stdin
...
Closes : #1190
2020-10-02 12:39:44 +02:00
Sascha Grunert
f53989457f
Merge pull request #1178 from alexcb/master
...
bugfix: don't overwrite existing stringslice refence
2020-09-21 23:40:16 +02: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
Zack Scholl
a8e44a8b5b
show only subcommand flags with bash completion
2020-09-17 12:46:05 -07:00
knqyf263
74af85a00d
feat(help): add ShowSubcommandHelpAndExit
2020-09-08 17:53:16 +03:00
Alex Couture-Beil
2ae03fa69c
bugfix: don't overwrite existing stringslice refence
...
fixes an issue where values set by environment var are not saved to
existing stringslice reference.
2020-08-24 14:20:17 -07:00
Alberts Zemzale
d273947592
Remove incorrect bracket in v2 docs example
2020-08-23 13:35:59 +03:00
Steven Imle
be9c037806
Added template functions for multi-line Description formatting.
2020-08-17 16:02:40 -04:00
Alberts Zemzale
bed468fb76
Fix v1 aliases syntax in v2 docs
2020-08-13 19:15:35 +03:00
Robert Liebowitz
d2d2098085
Merge pull request #1160 from vschettino/flag-timestamp-value
...
Allow using Value with TimestampFlag
2020-07-12 09:32:01 -04:00
Vinicius Schettino
54fbe0a445
Basic test case to check if Value is propagated as it should
2020-07-11 15:55:19 -03:00
Vinicius Schettino
7ecfd216b1
Verify whether there is a Value before overriding
2020-07-11 15:54:46 -03:00
lynn (they)
8e16b98d40
Merge pull request #1158 from s4uliu5/patch-1
...
Fix small manual typo
2020-07-01 19:49:08 -07:00
Saulius Gurklys
dff8accf57
Fix typo
...
Fixed small typo.
2020-07-01 23:20:25 +03:00
lynn (they)
9047f3b42d
Merge pull request #1153 from Irioth/master
...
Bugfix: Remove version flag from commands with subcommands
2020-06-23 09:23:47 -07:00
Erin Call
5bb54ace57
fish.go: support PathFlag.TakesFile [ #1156 ]
2020-06-22 17:24:44 -07:00
Irioth
ef2d047c45
added test for successfully used -v flag on command with subcommands
2020-06-18 09:34:54 +03:00
Irioth
1f3e0b5233
make test more general and stable
2020-06-18 01:02:47 +03:00
Irioth
44371a2ac6
test for version flag on commands
2020-06-18 00:46:15 +03:00
Irioth
6d09498169
hide version flag for subcommands
2020-06-18 00:24:04 +03:00
lynn (they)
4f74020d9f
Merge pull request #1148 from tmatias/patch-1
...
fix link to docs on v2 manual
2020-06-16 13:49:51 -07:00
Tiago Matias
5b263d0ace
fix link to docs on v2 manual
...
was pointing to v1 docs
2020-06-15 12:04:06 -03:00
kirinnee
9523a3481b
Updated Docs Header in table of content for PowerShell support
2020-06-08 10:54:27 +08:00
lynn (they)
b190f2d2fc
Merge pull request #1127 from sgoroshko/master
...
fix #1121(StringSliceFlag set default value into destination)
2020-06-03 17:17:52 -07:00
Sergey Goroshko
10fe017765
fix nested conditions
2020-05-31 20:52:18 +03:00
kirinnee
b236763df5
Added manual and script for PowerShell autocomplete
2020-05-18 11:19:00 +08:00
Robert Liebowitz
477292c8d4
Merge pull request #1137 from TomOnTime/envars
...
Document EnvVar change
2020-05-13 06:04:02 -04:00
Tom Limoncelli
42aad27f4c
Document EnvVar change
2020-05-12 08:11:29 -04:00