Jesse Szwedko
64fcd51526
Merge branch 'master' into sort-flags
8 years ago
Jesse Szwedko
3f4989051e
Merge pull request #550 from runcom/test-go-1-7
...
.travis.yml: add go 1.7.x
8 years ago
Antonio Murdaca
d913b71c72
.travis.yml: add go 1.7.x
...
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
8 years ago
Antonio Murdaca
c516bce8f1
flags: provide a type to sort flags
...
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
8 years ago
Richard Kovacs
4cc2bad36e
Display error instead of just say command is incorrect
8 years ago
Jesse Szwedko
508a23430b
Default app.Writer to os.Stdout
...
As NewApp() does.
Fixes #545
8 years ago
W. Trevor King
c4a46a7df2
app: Add App.Description
...
So you can describe what the application is for without requiring
users to drill down into a particular command.
8 years ago
Jesse Szwedko
55f715e28c
Merge pull request #541 from dotCipher/patch-1
...
Typo in comments
8 years ago
Cody Moore
6c2c80959b
Typo in comments
...
Typo changing `implents` to `implements`
8 years ago
HIROSE Masaaki
ce42837702
Call HandleExitCoder for all members of MultiError.Errors
8 years ago
Jesse Szwedko
d53eb99165
Merge pull request #531 from keloyang/SkipFlagParsing-SkipArgReorder-bugfix
...
bug fix when SkipFlagParsing is false and SkipArgReorder is true
8 years ago
Shukui Yang
5d108a4435
bug fix when SkipFlagParsing is false and SkipArgReorder is true
...
Signed-off-by: Shukui Yang <yangshukui@huawei.com>
8 years ago
Jesse Szwedko
61f519fe5e
Merge pull request #528 from urfave/backport-no-arg-reordering
...
Backport no argument reordering as an option
8 years ago
Frances Bar
3df4b71842
Backport no argument reordering as an option
...
In the unreleased version 2, the argument reordering has been removed
(in f585ec7cb8
) since it only worked if
all of the arguments appeared before all of the flags, but not if they
were intermixed which was of limited utility and caused some confusion.
This commit allows enabling of this future behavior via SkipArgReorder.
Ideally we'd support complete intermingling of flags and arguments, but
this is unlikely to happen until we switch flag parsers.
Fixes #515
8 years ago
Dan Buch
86b8c43eaf
Merge pull request #521 from urfave/update-wording-around-gopkgin
...
Update wording around gopkg.in pinning to be more accurate
8 years ago
Dan Buch
b425397570
Merge branch 'master' into update-wording-around-gopkgin
8 years ago
Dan Buch
bf7166a9d7
Merge pull request #527 from urfave/dereference-flag-pointers
...
Dereference `Flag`s if they are pointers
8 years ago
Jesse Szwedko
e7b1833f53
Dereference `Flag`s if they are pointers
...
When checking if environment variables are set.
We don't support pointer flags currently (though this is the default in
the `v2` branch), but this fixes #516
8 years ago
Dan Buch
c723b19a84
Merge pull request #522 from nthnca/typo
...
Fix typo in README
8 years ago
Nathan Bullock
76164d6e36
Fix typo in README
...
cosumized -> customized
8 years ago
Jesse Szwedko
4b62cb6b33
Update wording around gopkg.in pinning to be more accurate
...
Since we have `v1.X` tags, gopkg.in/urfave/cli.v1 will pull the latest
tagged release rather than the `v1` branch. Since there are no tagged
`v2` releases, `gopkg.in` will pull the latest commit of that branch.
Fixes #513
8 years ago
Jesse Szwedko
df95e0708f
Manually set import in altsrc flag generation
...
Otherwise `goimports` switches it to `github.com/urfave/cli`
8 years ago
lewo
6aa0ab6903
Merge branch 'v2' into v2-completion
8 years ago
Dan Buch
c72728f424
Merge pull request #514 from grubernaut/f-default-value-text
...
Add DefaultValue text for flags
8 years ago
Jake Champlin
c8d66d7eda
Lowercase TOC to pass tests
8 years ago
Jake Champlin
51cebd042a
Update TOC in README
8 years ago
Jake Champlin
33b5174be4
Merge branch 'v2' into f-default-value-text
8 years ago
Jake Champlin
7d56512ecc
Add documentation, remove quotes by default
8 years ago
Jesse Szwedko
2616eeb540
Merge pull request #512 from grubernaut/f-update-altsrc-import-v2
...
Update altsrc imports to gopkg.in
8 years ago
Jesse Szwedko
33bb4c1213
Merge pull request #511 from grubernaut/f-update-altsrc-import-v1
...
Fix import paths in altsrc
8 years ago
Jake Champlin
e0556cf9e8
Add DefaultValue text for flags
...
Allows a user to override the default value of a flag in the displayed help output.
Ex:
```
cli.IntFlag{
Name: "foo, f",
DefaultText: "random foo",
Value: "bar",
}
```
Running `(app.name) -h` will now yield:
```
--foo value (default: "random foo")
```
Fixes : #504
8 years ago
Jake Champlin
2ab83fab2a
Force generation of flag types to use gopkg import
8 years ago
Jake Champlin
b93207160f
Update altsrc imports to gopkg.in
...
Updates altsrc imports to use `gopkg.in/urfave/cli.v2`
Fixes : #505
8 years ago
Jake Champlin
c75c862386
Fix import paths in altsrc
...
Uses gopkg.in as the import path for the `altsrc` package.
Fixes : #473
8 years ago
Dan Buch
a095a5a896
Merge pull request #506 from grubernaut/v2
...
Abstract dependency and test execution with Makefile
8 years ago
Jake Champlin
3a3228c0e4
Abstract dependency and test execution with Makefile
...
Abstract the `runtests` script with a makefile, and update travis tests to use makefile abstraction.
8 years ago
Dan Buch
05fe449c81
Merge pull request #508 from urfave/remove-end-user-deprecation-warnings
...
remove the possiblity of end-user's seeing deprecation warnings
8 years ago
Dan Buch
adf6897aa2
Merge pull request #509 from urfave/merging-from-v1
...
Merging from v1
8 years ago
Dan Buch
812fa64d8e
Skip migrations on go < 1.3
...
because there won't be a `gfmrun` around to extract examples
8 years ago
Dan Buch
2506863832
Merge branch 'master' into remove-end-user-deprecation-warnings
8 years ago
Dan Buch
87f9c6d44a
Merge remote-tracking branch 'origin/master' into merging-from-v1
8 years ago
Dan Buch
207bb61852
Merge pull request #510 from urfave/skip-gfmrun-below-go1.3
...
Skip gfmrun installation and tests below go1.3
8 years ago
Dan Buch
c0cf41eb54
Skip gfmrun installation and tests below go1.3
8 years ago
Dan Buch
c5d3a341c4
Adjust some gfmrun output matches
...
which I assume became mismatched during merge
8 years ago
Dan Buch
81c242dda6
Merge remote-tracking branch 'origin/master' into merging-from-v1
8 years ago
Jesse Szwedko
a5ca09a934
fixup! remove the possiblity of end-user's seeing deprecation warnings
8 years ago
Jesse Szwedko
8e6aa34a12
remove the possiblity of end-user's seeing deprecation warnings
...
Instead use deprecation pattern described in
https://blog.golang.org/godoc-documenting-go-code .
Fixes #507
8 years ago
Antoine Eiche
8a8d8691bd
Add migrator for bash related names
...
It migrates
- BashComplete -> ShellComplete
- EnableBashCompletion -> EnableShellCompletion
- BashCompletionFlag -> GenerateCompletionFlag
8 years ago
Jesse Szwedko
168c95418e
Ensure that EnvVar struct field exists before interrogating it
...
Otherwise you end up with `<invalid Value>` which, in practice, would
probably work, but this is cleaner.
8 years ago
Dan Buch
d60469024a
Merge pull request #502 from urfave/fix-is-set-for-env
...
Fix context.(Global)IsSet to respect environment variables
8 years ago