-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify public param config with config.rs, spin out CLI config Address feedback and refactor CLI overrides Simplify global initialization Add configurable config file location
- Loading branch information
1 parent
aa63a65
commit b406765
Showing
32 changed files
with
855 additions
and
626 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use camino::Utf8PathBuf; | ||
use lurk::cli::paths::lurk_default_dir; | ||
use lurk::config::lurk_config; | ||
use once_cell::sync::Lazy; | ||
|
||
/// Edit this path to use a config file specific to benchmarking | ||
/// E.g. `Utf8PathBuf::from("/home/<user>/lurk-rs/lurk-bench.toml");` | ||
pub static BENCH_CONFIG_PATH: Lazy<Utf8PathBuf> = | ||
Lazy::new(|| lurk_default_dir().join("lurk.toml")); | ||
|
||
/// Sets the config settings with the given file | ||
pub fn set_bench_config() { | ||
lurk_config(Some(&BENCH_CONFIG_PATH), None); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.