arbiter icon indicating copy to clipboard operation
arbiter copied to clipboard

allow the user to have a custom config filepath

Open ts0yu opened this issue 3 years ago • 4 comments

we should make it so that a user can run arbiter see --config <name>.toml instead of only having predefined paths. it should still be able to accept arbiter see --config

ts0yu avatar Jan 07 '23 21:01 ts0yu

in arbiter/crates/cli/src/config/mod.rs you will see this is where we parse the config file. If you run arbiter see --config right now it will iterate through the specified file paths of "where to look" for a file called either Config.toml or config.toml. So in the current implementation there is a specific place where the user must put their config file and it must have a specific name. thus the --config flag represents a boolean value that the program just checks is present. What we would like to do is all a user to "optionally" (use option type for the subcommand) specify a file name and path after the --config flag such that command would look something like this: arbiter see ---config somefilepathandname.toml so that the user can specify where their config file is and what it is called. Everything for this issue is in the cli crate.

0xJepsen avatar Jan 13 '23 15:01 0xJepsen

Mind assigning me to this one?

PossibilityResult avatar Jan 13 '23 19:01 PossibilityResult

@eljhfx on it.

Autoparallel avatar Jan 13 '23 19:01 Autoparallel

PR: #69

PossibilityResult avatar Jan 14 '23 03:01 PossibilityResult