forked from argumentcomputer/lurk-beta
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor public param config (argumentcomputer#706)
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
3292852
commit aa67bdb
Showing
31 changed files
with
851 additions
and
628 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.