Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading only subtree of a config #3

Open
danmx opened this issue Aug 27, 2020 · 2 comments
Open

Loading only subtree of a config #3

danmx opened this issue Aug 27, 2020 · 2 comments

Comments

@danmx
Copy link

danmx commented Aug 27, 2020

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.

@danmx danmx changed the title q: ( Loading only subtree of a config ) q: Loading only subtree of a config Aug 27, 2020
@stale
Copy link

stale bot commented Nov 26, 2020

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
Copy link

stale bot commented Dec 26, 2020

Closing this as it has become stale.

@stale stale bot closed this as completed Dec 26, 2020
@meatballhat meatballhat reopened this Apr 22, 2022
@meatballhat meatballhat changed the title q: Loading only subtree of a config Loading only subtree of a config Apr 23, 2022
@dearchap dearchap transferred this issue from urfave/cli Dec 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants