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

Receive viper instance for configuration #15

Open
budak7273 opened this issue Jun 6, 2023 · 1 comment
Open

Receive viper instance for configuration #15

budak7273 opened this issue Jun 6, 2023 · 1 comment

Comments

@budak7273
Copy link
Member

budak7273 commented Jun 6, 2023

Suggested by @mircearoata

@budak7273 budak7273 converted this from a draft issue Jun 6, 2023
@mircearoata mircearoata changed the title ficsit-cli receive viper instance Receive viper instance for configuration Jun 6, 2023
@mircearoata
Copy link
Member

This would allow other code using this as a library to use viper for its config without sharing the key names.

For example, one could configure ficsit-cli in viper.Sub("ficsit") and pass that viper instance to ficsit-cli, and then use viper.Sub("my-app") for its own config that can be saved/loaded from config files separately.

@budak7273 budak7273 moved this to 🆕 New in Mod Manager (SMM) and CLI Jun 6, 2023
@budak7273 budak7273 moved this from 🆕 New to 📋 Backlog in Mod Manager (SMM) and CLI Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Status: 🆕 New
Development

No branches or pull requests

2 participants