configure_me icon indicating copy to clipboard operation
configure_me copied to clipboard

Support for multiple binaries mis-documented

Open Shamazo opened this issue 4 years ago • 3 comments

I am trying to use configure_me for a crate with two executables each with their own config files. This section in the documentation seems wrong:

# config for binary foo
[package.metadata.configure_me.bin]
foo = "foo_config_spec.toml"

# config for binary bar
[package.metadata.configure_me.bin]
bar = "bar_config_spec.toml"

I believe it should be

# config for binary foo
[package.metadata.configure_me.bin]
foo = "foo_config_spec.toml"
bar = "bar_config_spec.toml"

I can open a PR for this later.

Shamazo avatar Feb 13 '21 21:02 Shamazo

Also went digging for how switches work, will add that to the PR.

Shamazo avatar Feb 13 '21 22:02 Shamazo

If I remember correctly that should work with Toml but what you suggest looks better, so I will be happy for a PR. Thanks!

I just have to go now, will review the PR in a couple of hours.

Kixunil avatar Feb 13 '21 22:02 Kixunil

no rush, I'll put one up tomorrow most likely. I spent a decent amount of time today digging through the code and may as well write down what I learned so this crate is easier to use for others.

I don't still have the error in my terminal scroll back, but it was something about redefining a table.

Shamazo avatar Feb 14 '21 00:02 Shamazo