urfave / cli-altsrc

Read values for urfave/cli/v3 flags from config files
https://pkg.go.dev/github.com/urfave/cli-altsrc/v3
MIT License
14 stars 3 forks source link

Loading only subtree of a config #3

Open danmx opened 4 years ago

danmx commented 4 years ago

Question

Is there a way to load only selected subtree of a config file (selected config "profile")?

Example

With a config file like this:

[default]
  type = "slow"
  colour = "green"
[private]
  type = "fast"
  colour = "yellow"

I'd like to be able to add in a root flags --config-profile=private and get values/flags from private subtree of the config.

stale[bot] commented 3 years ago

This issue or PR has been automatically marked as stale because it has not had recent activity. Please add a comment bumping this if you're still interested in it's resolution! Thanks for your help, please let us know if you need anything else.

stale[bot] commented 3 years ago

Closing this as it has become stale.