Commit Graph

1003 Commits

Author SHA1 Message Date
Ajitem Sahasrabuddhe
86e10211de
remove redundant go generate from altsrc
update go generate in cli package to generate both files
regeneration test
2019-08-04 11:05:50 +05:30
Ajitem Sahasrabuddhe
c676ed4caa
indentation fixes in template
regeneration test
2019-08-04 11:04:23 +05:30
Ajitem Sahasrabuddhe
c4fc88e46d
Merge branch 'flag-type-generation-golang' of https://github.com/urfave/cli into flag-type-generation-golang 2019-08-04 10:29:34 +05:30
Ajitem Sahasrabuddhe
2a084945a4
move around code
change package to flag-gen to avoid conflict with flag-generator binary
test code generation
2019-08-04 10:28:08 +05:30
Ajitem Sahasrabuddhe
065fe9e9af
change structure to embed source json and template files
restructure code to have defaults in place of choices
2019-08-04 10:05:44 +05:30
Ajitem Sahasrabuddhe
d1ded77768
rename utility from fg > flag-generator 2019-08-04 08:45:29 +05:30
Ajitem Sahasrabuddhe
92608509a4
Merge branch 'master' into flag-type-generation-golang 2019-08-03 22:49:24 +05:30
Ajitem Sahasrabuddhe
d209be3245
update go generate command
test file generation
2019-08-03 22:48:13 +05:30
Ajitem Sahasrabuddhe
add69c7d4f
updated flag types generated courtesy fg cli 2019-08-03 22:48:12 +05:30
Ajitem Sahasrabuddhe
c133a5aeb1
add explicit true/false choices for value and dest keys due to go default false for bool types 2019-08-03 22:48:12 +05:30
Ajitem Sahasrabuddhe
16c7a60528
finish generation of flag types for altsrc package
rename package to fg (flag generator)
2019-08-03 22:48:12 +05:30
Ajitem Sahasrabuddhe
32ddef5ca7
finish generation of flag types for cli package 2019-08-03 22:48:12 +05:30
mingrammer
9766be8d3e
get latest changes from master 2019-08-03 22:47:47 +05:30
mingrammer
e01e3c540c
Fix the unaligned indents for the commands that have no categories 2019-08-03 22:47:47 +05:30
Ajitem Sahasrabuddhe
244eba7e4c
Merge pull request #831 from saschagrunert/go-modules
Add go module support
2019-08-03 18:04:31 +05:30
Sascha Grunert
4627bbe109
Add go module support
This adds a go.{mod,sum} file to official support go modules.

Signed-off-by: Sascha Grunert <mail@saschagrunert.de>
2019-08-03 13:56:41 +02:00
Audrius Butkevicius
1169906f57
Merge pull request #773 from teresy/redundant-nil-check-slice
Remove redundant nil checks
2019-08-03 11:02:34 +01:00
Lynn Cyrin (they/them)
94f4f83672
Merge branch 'master' into redundant-nil-check-slice 2019-08-03 02:05:33 -07:00
Ajitem Sahasrabuddhe
07c1638969
Merge pull request #806 from mingrammer/fix-help-indentation
Fix the unaligned indents for the command help messages
2019-08-03 08:47:32 +05:30
Ajitem Sahasrabuddhe
7a51175ce1
Merge branch 'master' into fix-help-indentation 2019-08-03 08:37:34 +05:30
Ajitem Sahasrabuddhe
842e3fe1b6
Merge pull request #828 from urfave/lynncyrin-patch-1
Update maintainers for current reality
2019-08-03 08:12:05 +05:30
Lynn Cyrin
330a9143fb
Merge branch 'master' into fix-help-indentation 2019-08-02 18:14:50 -07:00
Lynn Cyrin
fa51d00dc6
Update maintainers for current reality 2019-08-02 18:06:15 -07:00
Ajitem Sahasrabuddhe
7675649a17
Merge pull request #819 from lynncyrin/required-flags-take-2
Required flags
2019-08-02 22:52:32 +05:30
Ajitem Sahasrabuddhe
f8ba505a7c
Merge branch 'master' into required-flags-take-2 2019-08-02 22:49:29 +05:30
Ajitem Sahasrabuddhe
656063a846
Merge pull request #788 from benzvan/master
adds test coverage to context
2019-08-02 22:49:09 +05:30
Lynn Cyrin
60fb297232
remove help assertion stuff 2019-08-01 23:27:38 -07:00
Lynn Cyrin
d7ec4e8013
add env var tests 2019-08-01 23:27:38 -07:00
Lynn Cyrin
f4128a02f3
Update command.go 2019-08-01 22:54:15 -07:00
Lynn Cyrin
38f9e1622d
add environment variable support 🎉 2019-08-01 22:52:21 -07:00
Lynn Cyrin
f21b22dd90
cleanup some issues with error display 2019-08-01 22:10:18 -07:00
Lynn Cyrin
fdd4d10691
update comments 2019-08-01 21:48:52 -07:00
Lynn Cyrin
ef9acb4a3b
rename cases 2019-08-01 21:46:56 -07:00
Lynn Cyrin
45f2b3d8e7
more test cases 2019-08-01 21:45:11 -07:00
Lynn Cyrin
78db152323
add typed error assertions 2019-08-01 21:35:15 -07:00
Lynn Cyrin
d4740d10d0
more test cases 2019-08-01 20:58:08 -07:00
Lynn Cyrin
595382c509
expand test cases 2019-08-01 20:39:37 -07:00
Lynn Cyrin
3d6eec825a
add test cases 2019-08-01 20:35:23 -07:00
Lynn Cyrin
7b9e16b6b5
update test names 2019-08-01 20:30:43 -07:00
Lynn Cyrin
95d3a8624d
update test to reflect app flag usage 2019-08-01 20:27:51 -07:00
Lynn Cyrin
714a73f028
remove unused thing 2019-08-01 19:57:14 -07:00
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