Skip to content

Commit

Permalink
Merge pull request #1378 from dearchap/issue_1334
Browse files Browse the repository at this point in the history
Feature:(Issue 1334) Add support for uint64slices
  • Loading branch information
dearchap authored Sep 10, 2022
2 parents 6ccecf2 + d0fff2e commit d62ac9c
Show file tree
Hide file tree
Showing 9 changed files with 1,285 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .github/.codecov.yml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
comment: false
coverage:
threshold: 5%
2 changes: 1 addition & 1 deletion altsrc/flag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (ris *racyInputSource) isSet(name string) bool {
func TestGenericApplyInputSourceValue_Alias(t *testing.T) {
v := &Parser{"abc", "def"}
tis := testApplyInputSource{
Flag: NewGenericFlag(&cli.GenericFlag{Name: "test", Aliases: []string{"test_alias"}, Value: &Parser{}}),
Flag: NewGenericFlag(&cli.GenericFlag{Name: "test", Aliases: []string{"test_alias"}, Value: &Parser{}}),
FlagName: "test_alias",
MapValue: v,
}
Expand Down
13 changes: 9 additions & 4 deletions flag-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ flag_types:
- { name: Layout, type: string }
- { name: Timezone, type: "*time.Location" }

# TODO: enable UintSlice
# UintSlice: {}
# TODO: enable Uint64Slice once #1334 lands
# Uint64Slice: {}
UintSlice:
value_pointer: true
skip_interfaces:
- fmt.Stringer
Uint64Slice:
value_pointer: true
skip_interfaces:
- fmt.Stringer

Loading

0 comments on commit d62ac9c

Please sign in to comment.