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

slippi-config module #9

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Conversation

rapito
Copy link
Contributor

@rapito rapito commented Aug 21, 2023

SlippiConfig Module

The SlippiConfig module provides functionalities for handling configurations specific to Slippi. It sources configuration values either from a TOML file or environment variables.

Why?

Handling URLs in different places was driving me nuts on Dolphin so I'd hope bootstrapping this now would mitigate similar issues on this repo in the future.

Usage

Ensure you have a .toml configuration file under the envs/ directory named after the environment (e.g., development.toml).

To use the configuration:

let config = SlippiConfig::get();
println!("{:?}", config.graphql_url);

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

Successfully merging this pull request may close these issues.

1 participant