Lynn Cyrin
9438aba3b8
remove showFlagError, we can use the help printer assertion to accomplish the same goal
2019-08-01 19:54:57 -07:00
Lynn Cyrin
386b379d19
Revert "reset generated flags changes"
...
This reverts commit 9ec594d529
.
2019-07-28 22:45:43 -07:00
Lynn Cyrin
9ec594d529
reset generated flags changes
2019-07-28 22:34:07 -07:00
Lynn Cyrin
23f09ac1e8
cleanup tests, check required flags in more places
2019-07-28 22:19:35 -07:00
Lynn Cyrin
7ce0af189e
remove unused code
2019-07-18 00:52:24 -07:00
Lynn Cyrin
d8985dc6d5
reduce diff
2019-07-18 00:51:16 -07:00
Lynn Cyrin
19140e1fb5
show errors
2019-07-18 00:48:09 -07:00
Lynn Cyrin
2299852c3c
cleanup subcommand and specs
2019-07-18 00:47:18 -07:00
Lynn Cyrin
300288670f
add subcommand
2019-07-18 00:20:32 -07:00
Lynn Cyrin
cc1cf8c459
wording shift
2019-07-18 00:14:03 -07:00
Lynn Cyrin
32d84d8e87
copy update
2019-07-17 00:25:13 -07:00
Lynn Cyrin
01d5cfab70
use strings.Join
2019-07-17 00:20:44 -07:00
Lynn Cyrin
cdc7af744e
add handling for multiple required flags
2019-07-17 00:16:40 -07:00
Lynn Cyrin
9293f5b3cc
visually shorten logic
2019-07-14 21:00:16 -07:00
Lynn Cyrin
f00f35ce8c
docs
2019-07-13 14:02:45 -07:00
Lynn Cyrin
17108e1db4
tabs
2019-07-13 13:59:29 -07:00
Lynn Cyrin
cf824804c2
update tests
2019-07-13 13:57:06 -07:00
Lynn Cyrin
80d7e91191
fill out test cases
2019-07-13 03:51:26 -07:00
Lynn Cyrin
746866c10d
add update integration with the help output
2019-07-13 03:44:39 -07:00
Lynn Cyrin
550ed20ea4
update tests
2019-07-13 01:26:47 -07:00
Lynn Cyrin
f6777bf4bf
quote the flag name
2019-07-13 01:03:46 -07:00
Lynn Cyrin
6a2ae78373
backwards compatible RequiredFlag implementation
2019-07-11 21:53:10 -07:00
Lynn Cyrin
922d231891
./generate-flag-types cli -i flag-types.json -o flag_generated.go
2019-07-11 21:28:09 -07:00
Lynn Cyrin
8a58b7e039
remove manual isRequired funcs
2019-07-11 20:47:47 -07:00
Lynn Cyrin
62e99ad1c1
add IsRequired to generator
2019-07-11 20:46:22 -07:00
Lynn Cyrin
310bfeb194
add required attr to generator
2019-07-11 20:44:41 -07:00
Lynn Cyrin
af627c73c3
update func name
2019-07-11 20:34:17 -07:00
Lynn Cyrin
3d2d6975b4
reduce diff
2019-07-11 20:32:42 -07:00
Lynn Cyrin
0608059cc7
reduce diff
2019-07-11 20:32:15 -07:00
Lynn Cyrin
9c299e7e8a
reduce diff
2019-07-11 20:28:29 -07:00
Lynn Cyrin
30a71dc427
update Run command
2019-07-11 20:25:52 -07:00
Lynn Cyrin
f7d5e2c21e
reduce diff
2019-07-11 20:22:16 -07:00
Lynn Cyrin
e6842c0b75
merge in test file
2019-07-11 20:21:05 -07:00
Lynn Cyrin
fa8187f2ce
reduce diff
2019-07-11 20:19:42 -07:00
Lynn Cyrin
ce1630141e
reduce diff???
2019-07-11 20:18:52 -07:00
Lynn Cyrin
138dbaafec
Merge branch 'master' into required_flags
2019-07-11 20:07:55 -07:00
Audrius Butkevicius
693af58b4d
Merge pull request #766 from agis/patch-1
...
Fix README typo
2019-02-03 18:40:40 +00:00
Audrius Butkevicius
e229212769
Merge pull request #798 from Quasilyte/patch-1
...
use type switch instead of if/else
2019-02-03 18:37:18 +00:00
Iskander (Alex) Sharipov
5b83c895a7
use type switch instead of if/else
...
This reduces the syntax noise of the code by
removing excessive type assertions.
Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
2019-01-29 22:51:02 +03:00
Audrius Butkevicius
b67dcf995b
Merge pull request #776 from gliptak/patch-2
...
Bring Go version current
2018-10-29 21:32:00 +00:00
Audrius Butkevicius
11ab68f24d
Merge branch 'master' into patch-2
2018-10-29 21:19:45 +00:00
Audrius Butkevicius
cbebba941b
Merge pull request #775 from gliptak/patch-1
...
Correct typo
2018-10-29 21:18:40 +00:00
Gábor Lipták
769f6d543b
Bring Go version current
2018-10-18 21:00:02 -04:00
Gábor Lipták
9587fc27bd
Correct typo
2018-10-18 20:56:13 -04:00
Agis Anastasopoulos
d7c3be8267
Fix README typo
2018-08-21 11:19:37 +03:00
Audrius Butkevicius
934abfb2f1
Merge pull request #758 from vrothberg/fix-short-opts-parsing
...
short opt handling: fix parsing
2018-08-21 07:40:27 +01:00
Valentin Rothberg
3e5a935ed3
fix go vet
warning
...
command_test.go:342:3 value declared but not used
Signed-off-by: Valentin Rothberg <vrothberg@suse.com>
2018-08-21 08:33:42 +02:00
Valentin Rothberg
c23dfba701
short opt handling: fix parsing
...
Only split a given string (e.g., "-abc") into short options (e.g., "-a",
"-b", "-c") if all those are flags. To further avoid mistakenly
transform common arguments, catch "flag provided but not defined" errors
to iteratively transform short options.
Signed-off-by: Valentin Rothberg <vrothberg@suse.com>
Fixes: https://github.com/projectatomic/libpod/issues/714
2018-08-20 12:35:43 +02:00
8e01ec4cd3
Merge pull request #598 from urfave/backport-json-support
...
Backport JSON InputSource to v1
2018-02-25 22:02:53 -05:00
8dc47eb3cb
Merge branch 'master' into backport-json-support
2018-02-25 16:09:48 -05:00