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

Add command for printing embedded configs #487

Merged
merged 4 commits into from
Feb 13, 2024

Conversation

sushi-shi
Copy link
Contributor

@sushi-shi sushi-shi commented Jan 24, 2024

Resolves: #486

A few things:

  • get_type trait function is not really needed, but I wanted to tie an actual config with its ConfigType value in some way.
  • I believe include_str!("..\\..\\..\\..\\config\\joshuto.toml"); for windows is not needed, and / works just as well? I am not sure.
  • get_config can be moved out of a trait, but with this its usage will be uglier: let app_config = get_config::<App>().
  • I thought about adding an option for printing the current config (might be useful for debugging), but let's discuss this first!

@kamiyaa
Copy link
Owner

kamiyaa commented Feb 13, 2024

I believe include_str!("..\..\..\..\config\joshuto.toml"); for windows is not needed, and / works just as well? I am not sure.

Haven't tested but I guess we'll cross that road when we get there xd

Copy link
Owner

@kamiyaa kamiyaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, I will need to get used to the new interface haha

@kamiyaa kamiyaa merged commit 96418c0 into kamiyaa:main Feb 13, 2024
4 checks passed
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.

Add a new command to print default configuration
2 participants