MCPcopy Create free account
hub / github.com/Recordscript/recordscript / get_option

Method get_option

libs/hbb_common/src/config.rs:928–936  ·  view source on GitHub ↗
(k: &str)

Source from the content-addressed store, hash-verified

926 }
927
928 pub fn get_option(k: &str) -> String {
929 get_or(
930 &OVERWRITE_SETTINGS,
931 &CONFIG2.read().unwrap().options,
932 &DEFAULT_SETTINGS,
933 k,
934 )
935 .unwrap_or_default()
936 }
937
938 pub fn set_option(k: String, v: String) {
939 if !is_option_can_save(&OVERWRITE_SETTINGS, &k) {

Callers

nothing calls this directly

Calls 2

get_orFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected