8000 Support aliases in .yml files (altsrc.InitConfigFileInputSourceFunc) · Issue #1394 · urfave/cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Support aliases in .yml files (altsrc.InitConfigFileInputSourceFunc) #1394
Closed
@binwiederhier

Description

@binwiederhier

Checklist

  • Are you running the latest v2 release? The list of releases is here.
  • Did you check the manual for your release? The v2 manual is here.
  • Did you perform a search about this feature? Here's the Github guide about searching.

What problem does this solve?

Thank you for this project. It's fantastic. I've been a long time user and I'm very happy.

I just added the ability to use the Aliases in my yml file when loading through altsrc (see binwiederhier/ntfy@91594fa#diff-d1253876bc7a1b30f67245948f61e61430af2f3f0bf72780e3c0314a24d152deR43-R50). I was wondering if that was something you'd be interested in adding as a feature.

If not, I'm alright too and you can close this ticket.

Solution description

Example:

altsrc.NewStringFlag(&cli.StringFlag{Name: "listen-http", Aliases: []string{"listen_http", "l"},  ...}),

Should be loadable via the .yml file:

# Currently supported:
listen-http: ":80"

# Would also be supported with the suggested change (see Aliases above):
listen_http: ":80"
l: ":80"

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/v2relates to / is being considered for v2kind/featuredescribes a code enhancement / feature request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0