Commit Graph

2459 Commits

Author SHA1 Message Date
d8de3b5483
Tidy up top-level go.mod 2022-10-02 08:50:29 -04:00
2ca91434a8
Move genflags tool to cmd/ and pin to previous release
to alleviate problems caused by the circular dependency of using the
same code as a library that is potentially being generated to adhere to
a different API.
2022-10-02 08:50:29 -04:00
Naveen Gogineni
45a1375078
Changes from code review 2022-10-01 19:46:52 -04:00
Naveen Gogineni
bc99b5865c
issue_62: Make slice options more posix like 2022-10-01 19:46:20 -04:00
Dokiy
02eb392916
Fix After not run 2022-10-01 19:18:06 -04:00
Dokiy
67f592aadb
Fix HideHelp 2022-10-01 19:17:49 -04:00
miyado
dd9cd61bef
Fix for TimestampFlag.GetValue to return empty string without value 2022-10-01 19:17:07 -04:00
40d886b0e6
Add stub for v3 docs + point gfmrun there instead 2022-09-30 08:13:34 -04:00
22ff9a34c9
Soft revert go.mod version bump 2022-09-29 07:59:21 -04:00
93a3190684
Bump declared module and internal usage to /v3/ 2022-09-12 07:51:51 -04:00
dearchap
6ccecf2dbe
Merge pull request #1257 from dearchap/bool_count
Add count option for bool flags
2022-09-06 09:26:21 -04:00
b1b1b27260
Merge pull request #1479 from urfave/release-process-notes
Add a few notes to release docs
2022-09-06 09:05:48 -04:00
Naveen Gogineni
869f29af0a Remove keystroke errors 2022-09-06 08:48:56 -04:00
Naveen Gogineni
dbdf119742 Add countable interface 2022-09-06 08:48:56 -04:00
Naveen Gogineni
15fd35e7b4 Add parametrize tests 2022-09-06 08:48:56 -04:00
Naveen Gogineni
7941e8ccf6 Add context.Count 2022-09-06 08:48:56 -04:00
dearchap
5db4e8086e Update docs/v2/examples/flags.md
Co-authored-by: Dan Buch <dan@meatballhat.com>
2022-09-06 08:48:56 -04:00
Naveen Gogineni
c22edee8b0 Add args 2022-09-06 08:48:56 -04:00
Naveen Gogineni
9a22ec034e Update godocs 2022-09-06 08:48:56 -04:00
Naveen Gogineni
af60ce5f44 Update docs 2022-09-06 08:48:56 -04:00
Naveen Gogineni
b75c1aa07d Run gofmt 2022-09-06 08:48:56 -04:00
Naveen Gogineni
1047a3303c Add to docs 2022-09-06 08:48:56 -04:00
Naveen Gogineni
6bfa730c7e Rebase main 2022-09-06 08:48:56 -04:00
Naveen Gogineni
3d03f6dfd3 Merge main and run tidy 2022-09-06 08:48:56 -04:00
Naveen Gogineni
faf75f6960 Update for build 2022-09-06 08:48:56 -04:00
Naveen Gogineni
ff23fe0b4c Merge commits 2022-09-06 08:48:56 -04:00
Naveen Gogineni
c8f53f9bdb Remove go changes 2022-09-06 08:48:56 -04:00
Naveen Gogineni
193fd848b1 Merge changes onto latest main 2022-09-06 08:48:56 -04:00
Naveen Gogineni
b4e0ec3b8a Add count option for bool flags 2022-09-06 08:48:56 -04:00
f1b2ed0409
Merge branch 'main' into release-process-notes 2022-09-06 07:43:47 -04:00
94c9951e4a
Merge pull request #1480 from urfave/update-codecov-action
Update version of codecov action
2022-09-06 07:43:34 -04:00
dearchap
0a88df4e46
Merge pull request #1471 from dearchap/collapse_flag_interface
Collapse flag interface
2022-09-05 16:45:06 -04:00
6245c0a06c
Explicitly pass CODECOV_TOKEN 2022-09-05 13:14:09 -04:00
42c6c3876e
Update version of codecov action
given errors seen in other PRs using v2
2022-09-05 13:07:41 -04:00
49f6440a18
Add a few notes to release docs
about the relationship to proxy.golang.org and automatically generated
release notes.
2022-09-05 12:03:38 -04:00
Naveen Gogineni
7e80d2099c Update godoc 2022-09-05 08:17:26 -04:00
Naveen Gogineni
069c6bfe4a Run gofmt 2022-09-05 08:12:38 -04:00
Naveen Gogineni
268cb973f8 Remove all flag interfaces 2022-09-04 22:51:05 -04:00
Naveen Gogineni
ab68d8a69d Cleanup: Collapse flag interfaces 2022-09-04 22:18:41 -04:00
Alex
31c5137f2e
Update cli.yml (#1469)
Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com>

Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com>
2022-09-04 12:32:28 -04:00
dearchap
f451dead12
Fix:(issue_1272) Generic flag not set from env (#1458) 2022-09-01 08:46:59 -04:00
Ilia Choly
ca9df40abd
Add App.InvalidFlagAccessHandler (#1446)
* Add App.UnknownFlagHandler

* Rename App.UnknownFlagHandler to App.InvalidFlagAccessHandler

* Traverse parent contexts
2022-08-30 18:51:16 -04:00
dearchap
254c38ea72
Fix:(issue_1293) Wrap usage text for commands (#1460)
* Fix:(issue_1293) Wrap usage text for commands

* Change way to calculate offset

* Make test case more robust

* Remove add function

* Add comment
2022-08-30 17:56:37 -04:00
ab
514a1149f0
Update v2 dead link (#1466) 2022-08-30 17:56:19 -04:00
james-prysm
f6642463da
Add support for alias in YAMLs (#1448)
* adding in boolean alias support

* fixing formatting

* adding string alias and test

* adding int alias and test

* add support for duration flag

* adding float flag alias support

* adding alias support to remaining flags and fixing tests

* fixing test

* Modify nesting flag apply

Co-authored-by: Dokiy <49900744+Dokiys@users.noreply.github.com>
Co-authored-by: Dokiy <Dokiy.zhang@verystart.cn>
2022-08-30 06:51:34 -04:00
Gerrard-YNWA
b98c059269
fix: allow required flag with one character (#1449)
* fix: allow required flag with one character

* fix: update test case
2022-08-29 07:25:55 -04:00
dearchap
8b23e7b1e9
Merge pull request #1464 from ccremer/parse-int
Add configurable Base to int, uint and uint64 flags
2022-08-26 19:21:09 -04:00
ccremer
bd2ae121ab
Add configurable Base to int, uint and uint64 flags
This allows users to configure the basis for integer parsing.
2022-08-25 15:25:47 +02:00
dearchap
77a5feffee
Merge pull request #1456 from dearchap/issue_1455
Fix:(issue_1455) Allow bool flags from input altsrc
2022-08-24 08:14:14 -04:00
Naveen Gogineni
2e8c0e90fa Revert godoc changes 2022-08-23 08:39:43 -04:00