Support root level map keys in map sources #2037
Labels
area/v3
relates to / is being considered for v3
kind/bug
describes or fixes a bug
status/triage
maintainers still need to look into this
Checklist
What problem does this solve?
This issue is related to this one I opened here: urfave/cli-altsrc#14
I noticed the same issue of root keys not being considered also occurs in
urfave/cli
itself:Example:
will output (host is empty):
Solution description
I want the above snipped to set host to
localhost
anddatabase-url
toexample.com
, instead of only setting the database url.The issue is located here - because it always returns
nil
if there is no dot in a key:https://github.com/urfave/cli/blob/main/value_source.go#L196
The text was updated successfully, but these errors were encountered: