Commit Graph

1034 Commits

Author SHA1 Message Date
marwan-at-work
1f7d1684b8 fix nil check 2019-08-06 13:57:00 -04:00
marwan-at-work
cee005ee62 only create context once 2019-08-06 12:55:29 -04:00
marwan-at-work
006fad30ca fix go.mod 2019-08-05 15:03:26 -04:00
marwan-at-work
820040ec28 add context.Context to cli.Context 2019-08-05 14:06:10 -04:00
Jesse Szwedko
d3ae77c26a
Merge pull request #641 from cbranch/altsrc-parse-durations
altsrc: Parse durations from strings
2018-01-28 10:24:52 -08:00
Jesse Szwedko
1355f91780
Merge pull request #662 from OneOfOne/v2
lint + DefaultCommand
2018-01-28 10:14:10 -08:00
Jesse Szwedko
d604b6ffee
Merge branch 'v2' into altsrc-parse-durations 2018-01-28 10:12:24 -08:00
Jesse Szwedko
15a051e65a
Merge branch 'v2' into v2 2018-01-28 10:09:28 -08:00
Jesse Szwedko
20e2dde44b
Merge pull request #703 from urfave/update-osx-pip-name
Update pip to pip2 for new OSX builds
2018-01-28 10:09:08 -08:00
Jesse Szwedko
a35a28c15e Update pip to pip2 for new OSX builds
See https://github.com/travis-ci/travis-ci/issues/8829
2018-01-28 09:58:38 -08:00
OneOfOne
4960b5b3bc
Merge branch 'v2' of https://github.com/OneOfOne/cli into v2
* 'v2' of https://github.com/OneOfOne/cli:
  Add PathFlag
2018-01-23 19:45:41 +02:00
OneOfOne
10c9734c5e
notes 2018-01-23 19:45:38 +02:00
Jesse Szwedko
9b135236c7
Merge branch 'v2' into v2 2018-01-22 13:41:57 -08:00
Chris Branch
01b6b9192c altsrc: Parse durations from strings 2017-11-06 11:48:48 +00:00
Jesse Szwedko
b2bf3c5abe Merge pull request #670 from VMitov/path_flag
Add PathFlag
2017-09-28 15:42:40 -07:00
Vladislav Mitov
0b665e6170 Add PathFlag 2017-09-29 00:07:20 +03:00
OneOfOne
b7ab5b0c48
don't add -- prefix if we manually specify one 2017-08-31 00:26:52 +02:00
OneOfOne
163f247519
lint + DefaultCommand 2017-08-29 17:26:30 +02:00
50a0fdeea6 Merge pull request #655 from urfave/merging-from-v1
Merging from v1
2017-08-14 09:43:17 -04:00
Dan Buch
2da290b872
Ensure indentation is consistent in example code
plus remove usage of ancient builtin `println` 🙀
2017-08-14 09:33:47 -04:00
Dan Buch
3164173947
Switch some remaining encoding-related bits in test runner 2017-08-12 22:24:14 -04:00
Dan Buch
463d4bada6
Explicitly set mode to 'w' when combining coverprofiles 2017-08-12 22:21:53 -04:00
Dan Buch
d83210ca77
Attempt to better handle python(2|3) tempfile differences 2017-08-12 22:20:50 -04:00
Dan Buch
1505b9f046
Back out temporary flag alias whoopsie! 😅 2017-08-12 22:11:32 -04:00
Dan Buch
744fdb45b5
Resolve conflict in completion flag check better 2017-08-12 22:07:03 -04:00
Dan Buch
65b801c818
Resolve remaining test errors for v1 => v2 merge 2017-08-12 22:02:54 -04:00
Dan Buch
ce3a0da1a3
Ensure migrator does not mangle cli.CommandsByName 2017-08-08 21:21:31 -04:00
Dan Buch
a372849da6
Use []*Command instead of []Command in CommandsByName 2017-08-04 13:23:06 -04:00
Dan Buch
df5c6caa96
Back out the testify/assert addition 😅 2017-08-04 12:43:16 -04:00
Dan Buch
47a412375f
Resolved compile-time errors since merging from v1 2017-08-04 12:00:22 -04:00
Dan Buch
a61867e5e6
Merge remote-tracking branch 'origin/v1' into merging-from-v1 2017-08-04 11:59:27 -04:00
Jesse Szwedko
c717f7a215 Merge pull request #653 from urfave/master
Merging master into v1
2017-08-04 02:39:37 -07:00
Jesse Szwedko
b99aa811b4 Merge pull request #654 from urfave/appveyor-updates
Update os, image, golang, and python versions used in appveyor
2017-08-04 02:34:15 -07:00
Dan Buch
f59114b410
Update os, image, golang, and python versions used in appveyor 2017-08-03 22:59:38 -04:00
2903b76a12 Merge branch 'v1' into master 2017-08-03 17:58:28 -04:00
9128fe1c38 Merge pull request #652 from urfave/travis-tweaks
Update travis config
2017-08-03 17:57:53 -04:00
Dan Buch
184ffb5e57
Use os matrix instead of explicit matrix.include 2017-08-03 15:38:19 -04:00
Dan Buch
8164aa88ca
Update travis config
to only test on 1.8.x, and ensure we route to Ubuntu Trusty and a
recent macOS image.
2017-08-03 15:07:56 -04:00
Jesse Szwedko
4b90d79a68 Merge pull request #643 from nikkolasg/patch-1
[example] Make the basic example build-able.
2017-07-06 12:46:25 -07:00
Nicolas Gailly
a6dd54e94b make the basic example build-able. 2017-07-06 16:20:09 +02:00
Jesse Szwedko
b892ba3809 Merge pull request #583 from karalabe/invalidate-isset-cache
Invalidate context.setFlags cache on modification.
2017-06-24 20:28:08 -07:00
Jesse Szwedko
3ac1e107fe Merge pull request #593 from urfave/command-subcommand-usage-text
Display UsageText on Commands and Subcommands
2017-06-24 20:27:41 -07:00
Jesse Szwedko
3ddfc81916 Merge pull request #626 from urfave/do-not-double-print-before-errors
Do not double print errors from Before()
2017-06-24 20:12:38 -07:00
Jesse Szwedko
4fb301aa38 Merge branch 'master' into invalidate-isset-cache 2017-06-24 20:04:24 -07:00
Jesse Szwedko
48db8e2435 Display UsageText on Commands and Subcommands
If it is set, otherwise build the usage.

Fixes #592
2017-06-24 20:02:36 -07:00
Jesse Szwedko
c64d74a5d9 Do not double print errors from Before()
They should be handled by HandleExitCoder() as `After()` errors are.
2017-06-24 19:57:19 -07:00
Jesse Szwedko
f229e3c59c Merge pull request #629 from josephlr/use-usage-error-for-app
Subcommand OnUsageError should be passed to app
2017-06-24 19:32:30 -07:00
Joe Richey joerichey@google.com
291122b8f0 Subcommand OnUsageError should be passed to app
Not all of the Command components were being passed to the created App
in the startApp function.
2017-06-21 17:55:49 -07:00
Jesse Szwedko
cf33a9befe Merge pull request #586 from minio/extra-info
Add support for custom help templates.
2017-06-11 17:00:38 -07:00
Jesse Szwedko
74811faef3 Merge branch 'master' into extra-info 2017-06-11 16:24:10 -07:00